-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2603 from SpareBank1/develop_fix-feedback
fiks (fjerne bakgrunn) og refaktorering av ffe-feedback + ffe-feedback-react
- Loading branch information
Showing
6 changed files
with
153 additions
and
117 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,85 @@ | ||
@import 'feedback-container'; | ||
@import 'feedback-input'; | ||
@import 'feedback-thumb'; | ||
.ffe-feedback { | ||
width: 100%; | ||
flex-grow: 1; | ||
padding: var(--ffe-spacing-md); | ||
|
||
&__content { | ||
padding: var(--ffe-spacing-xs) 0 var(--ffe-spacing-xl); | ||
margin-right: auto; | ||
margin-left: auto; | ||
max-width: 420px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
color: var(--ffe-color-foreground-default); | ||
text-align: center; // Add text alignment for better heading display | ||
} | ||
|
||
&__heading { | ||
color: var(--ffe-color-foreground-emphasis); | ||
margin-bottom: var(--ffe-spacing-md); // Add margin below heading | ||
max-width: 100%; // Ensure heading doesn't overflow container | ||
word-wrap: break-word; // Handle long words | ||
} | ||
|
||
&__link-button { | ||
border: none; | ||
border-radius: 0; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
&__textarea-container { | ||
width: 100%; | ||
} | ||
|
||
&__button-group { | ||
padding: var(--ffe-spacing-sm) 0 0; | ||
} | ||
|
||
&--bg-primary { | ||
background-color: var(--ffe-color-surface-primary-default); | ||
} | ||
|
||
&--bg-secondary { | ||
background-color: var(--ffe-color-surface-secondary-default); | ||
} | ||
|
||
&--bg-tertiary { | ||
background-color: var(--ffe-color-surface-tertiary-default); | ||
} | ||
} | ||
|
||
.ffe-feedback__thumb { | ||
--thumb-up-filled-xl: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDAiPjxwYXRoIGQ9Ik04NDIuMzA2LTYxNC4zMDZxMjIuMjMxIDAgMzkuOTYyIDE3LjczIDE3LjczMSAxNy43MzEgMTcuNzMxIDM5Ljk2MnY2Ni4yMjlxMCA5LjQ2Mi0yLjExNiAyMS40NjItMi4xMTUgMTEuOTk5LTUuOTYxIDIwLjY5Mkw3ODAuMTUzLTE4Ny45MjRxLTguNjE2IDE5Ljg0Ni0yOC41MzkgMzMuODg0LTE5LjkyMyAxNC4wMzktNDEuNzY5IDE0LjAzOUgzMjUuNDYycS0yMy44NDYgMC00MC43NjktMTYuOTIzLTE2LjkyMy0xNi45MjQtMTYuOTIzLTQwLjc3di0zOTIuOTk3cTAtMTEgNC41LTIxLjYxNSA0LjUtMTAuNjE2IDEyLjExNS0xOC42MTZsMjA0LjMwOC0yMTEuNDYxcTEwLjkyMy0xMS4zMDcgMjUuOTk5LTEzLjkyMyAxNS4wNzctMi42MTUgMjguMjMgNC42OTIgMTIuNzY5IDcuMzA4IDE5LjE1NCAyMS40NjIgNi4zODQgMTQuMTUzIDMuMTU0IDMwLjA3NmwtMzggMTg1Ljc3aDMxOC4wNzZaTTE1NS40NjMtMTQwLjAwMXEtMjIuNjE1IDAtMzkuMDM5LTE2LjQyMy0xNi40MjMtMTYuNDI0LTE2LjQyMy0zOS4wMzl2LTM2My4zODJxMC0yMi4yMzEgMTYuNDIzLTM4Ljg0NiAxNi40MjQtMTYuNjE1IDM5LjAzOS0xNi42MTVoOC40NjJxMjIuNjE1IDAgMzkuMDM4IDE2LjYxNXQxNi40MjMgMzguODQ2djM2My43NjdxMCAyMi42MTUtMTYuNDIzIDM4Ljg0Ni0xNi40MjMgMTYuMjMxLTM5LjAzOCAxNi4yMzFoLTguNDYyWiIvPjwvc3ZnPg=='); | ||
--thumb-up-open-400-xl: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDAiPjxwYXRoIGQ9Ik04NTUtNjMycTI0IDAgNDIgMTh0MTggNDJ2ODEuODM5cTAgNy4xNjEgMS41IDE0LjY2MVQ5MTUtNDYxTDc4OS0xNzFxLTguODc4IDIxLjI1LTI5LjU5NSAzNi4xMjVRNzM4LjY4OS0xMjAgNzE2LTEyMEgyNzJ2LTUxMmwyMjUtMjM4cTEzLjYtMTQgMzIuMTg3LTE2LjVRNTQ3Ljc3My04ODkgNTY1LTg3OXExNyAxMCAyNS41IDI3LjV0NC4yIDM2LjVMNTU2LTYzMmgyOTlabS01MjMgMjV2NDI3aDM5N2wxMjYtMjk5di05M0g0ODJsNTMtMjQ5LTIwMyAyMTRaTTEzOS0xMjBxLTI0Ljc1IDAtNDIuMzc1LTE3LjYyNVQ3OS0xODB2LTM5MnEwLTI0Ljc1IDE3LjYyNS00Mi4zNzVUMTM5LTYzMmgxMzN2NjBIMTM5djM5MmgxMzN2NjBIMTM5Wm0xOTMtNjB2LTQyNyA0MjdaIi8+PC9zdmc+'); | ||
|
||
all: unset; | ||
margin: 0 var(--ffe-spacing-xs); | ||
padding: var(--ffe-spacing-xs); | ||
border-radius: 50%; | ||
transition: all var(--ffe-transition-duration) var(--ffe-ease); | ||
background: transparent; | ||
display: inline-flex; | ||
cursor: pointer; | ||
|
||
.ffe-icons { | ||
mask-image: var(--thumb-up-open-400-xl); | ||
color: var(--ffe-color-component-button-tertiary-foreground-default); | ||
} | ||
|
||
&:focus-visible .ffe-icons, | ||
&:active .ffe-icons { | ||
mask-image: var(--thumb-up-filled-xl); | ||
} | ||
|
||
&:hover, | ||
&:focus-visible, | ||
&:active { | ||
background: var(--ffe-color-component-button-tertiary-fill-hover); | ||
} | ||
|
||
&--down { | ||
transform: rotate(180deg); | ||
} | ||
} |