This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add Alchemer Beacon * feat(alchemer): prevent full width survey * style: fix lint * chore: remove Alchemer styles * feat(alchemer): popup trigger "feedback" tab * feat(alchemer): popup trigger "feedback" tab * feat(alchemer): hide "feedback" button after click * feat(alchemer): style modal * Revert "feat(alchemer): style modal" This reverts commit c7b4aac. * feat(alchemer): style modal * fix(alchemer): modal width in small viewports * fix(alchemer): modal width in small viewports --------- Co-authored-by: Randy <[email protected]>
- Loading branch information
1 parent
f4785db
commit f757e57
Showing
6 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.sg-b-p { | ||
box-shadow: 0 0 2rem rgb(0 0 0 / 50%); | ||
display: flex; | ||
flex-direction: column; | ||
margin: 0 auto; | ||
max-height: 90vh; | ||
max-width: 32rem; | ||
width: auto; | ||
|
||
&.sg-b-p-s { | ||
left: 5% !important; | ||
right: 5% !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<!-- The ID `alchemer-survey-trigger` is required to trigger the popup --> | ||
<bx-btn | ||
:id="buttonId" | ||
class="ui-alchemer-survey-trigger" | ||
size="sm" | ||
type="button" | ||
@click="hideButton" | ||
> | ||
<div class="ui-alchemer-survey-trigger__label">Feedback</div> | ||
</bx-btn> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const buttonId = "alchemer-survey-trigger"; | ||
function hideButton() { | ||
const button = document.getElementById(buttonId); | ||
if (button) { | ||
button.style.display = "none"; | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@use "~/assets/scss/carbon.scss"; | ||
.ui-alchemer-survey-trigger { | ||
&::part(button) { | ||
padding: carbon.$spacing-04 carbon.$spacing-02; | ||
position: fixed; | ||
right: 0; | ||
top: 50%; | ||
transform: rotate(180deg); | ||
z-index: 300; | ||
} | ||
&__label { | ||
writing-mode: vertical-rl; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
<slot /> | ||
</main> | ||
<LayoutFooter /> | ||
<UiAlchemerSurveyTrigger /> | ||
</div> | ||
</template> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters