mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: rename styles to module, add more focus styles
This commit is contained in:
parent
39f4d73d59
commit
aa3fb6c4e2
@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import './styles.css';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
const Component = ({ text }) => (
|
||||
<article className="user-feedback">
|
||||
<form>
|
||||
<form className={styles.bah}>
|
||||
<p>
|
||||
<span className="visually-hidden">
|
||||
On a scale from 1 to 5 where 1 is very unsatisfied and 5 is
|
||||
|
@ -7,6 +7,20 @@
|
||||
box-shadow: var(--ifm-global-shadow-lw);
|
||||
padding: var(--ifm-spacing-vertical) var(--ifm-spacing-horizontal);
|
||||
text-align: center;
|
||||
--outline-style: 2px solid var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
.user-feedback > form {
|
||||
max-width: 850px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.user-feedback * {
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.user-feedback *:focus {
|
||||
outline: var(--outline-style);
|
||||
}
|
||||
|
||||
.satisfaction-input-container {
|
||||
@ -24,11 +38,10 @@
|
||||
width: 3em;
|
||||
border: var(--ifm-global-border-width) solid currentColor;
|
||||
border-radius: 50%;
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.user-satisfaction-score-input:focus-visible + .user-satisfaction-score-label {
|
||||
outline: 2px solid var(--ifm-color-primary);
|
||||
outline: var(--outline-style);
|
||||
}
|
||||
|
||||
.user-satisfaction-score-label:hover {
|
||||
@ -46,3 +59,5 @@
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
.bah {}
|
Loading…
Reference in New Issue
Block a user