diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-02-10 09:48:55 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-02-10 09:48:55 +0000 |
| commit | 06551d447c0b702adeb3b16652b90b40fab090f7 (patch) | |
| tree | ea3cd1fba9a3e9ec7ffc7ea6ba9ed398256f0c78 /src/App.scss | |
| parent | 5f8988de929b067d1c0bdba037ddfec0b369d098 (diff) | |
| parent | 902954b29825647eaf5435c89e379ef4babe7931 (diff) | |
Merge branch 'tusooa/checkbox-accessibility' into 'develop'
Make checkbox settings accessible
See merge request pleroma/pleroma-fe!1778
Diffstat (limited to 'src/App.scss')
| -rw-r--r-- | src/App.scss | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/App.scss b/src/App.scss index 1c4c8941..3f352e8d 100644 --- a/src/App.scss +++ b/src/App.scss @@ -580,8 +580,6 @@ textarea, } &[type="checkbox"] { - display: none; - &:checked + label::before { color: $fallback--text; color: var(--inputText, $fallback--text); @@ -887,3 +885,15 @@ option { opacity: 0; } /* stylelint-enable no-descending-specificity */ + +.visible-for-screenreader-only { + display: block; + width: 1px; + height: 1px; + margin: -1px; + overflow: hidden; + visibility: visible; + clip: rect(0 0 0 0); + padding: 0; + position: absolute; +} |
