mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat: hide 'very unsatisfied'/'very satisfied' on smaller sreens
This commit is contained in:
parent
e007123c59
commit
a629c36fe7
@ -106,7 +106,13 @@ export const FeedbackWrapper = ({ seedData }) => {
|
||||
</p>
|
||||
|
||||
<div className={styles['satisfaction-input-container']}>
|
||||
<span aria-hidden="true">Very unsatisfied</span>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className={styles['satisfaction-input-visual-label']}
|
||||
>
|
||||
Very unsatisfied
|
||||
</span>
|
||||
<span className={styles['satisfaction-input-inputs']}>
|
||||
{[1, 2, 3, 4, 5].map((n) => (
|
||||
<span key={`input-group-${n}`}>
|
||||
<input
|
||||
@ -136,7 +142,13 @@ export const FeedbackWrapper = ({ seedData }) => {
|
||||
</label>
|
||||
</span>
|
||||
))}
|
||||
<span aria-hidden="true">Very satisfied</span>
|
||||
</span>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className={styles['satisfaction-input-visual-label']}
|
||||
>
|
||||
Very satisfied
|
||||
</span>
|
||||
</div>
|
||||
<div className={styles['button-container']}>
|
||||
<button
|
||||
|
@ -43,11 +43,36 @@
|
||||
|
||||
.satisfaction-input-container {
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
place-content: center;
|
||||
align-items: center;
|
||||
gap: var(--element-horizontal-gap);
|
||||
}
|
||||
|
||||
.satisfaction-input-inputs {
|
||||
display: flex;
|
||||
flex-flow: wrap;
|
||||
place-content: center;
|
||||
align-items: center;
|
||||
gap: var(--element-horizontal-gap);
|
||||
}
|
||||
|
||||
.satisfaction-input-visual-label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 800px) {
|
||||
.satisfaction-input-visual-label {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
.satisfaction-input-inputs {
|
||||
gap: calc(var(--element-horizontal-gap) / 2);
|
||||
}
|
||||
}
|
||||
|
||||
.user-satisfaction-score-label {
|
||||
display: grid;
|
||||
place-content: center;
|
||||
|
Loading…
Reference in New Issue
Block a user