aboutsummaryrefslogtreecommitdiff
path: root/src/App.scss
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-02-09 21:35:56 -0500
committertusooa <tusooa@kazv.moe>2023-02-09 21:35:56 -0500
commit902954b29825647eaf5435c89e379ef4babe7931 (patch)
treeb10d79b20bede7d2e679ef80b3a2d68896f9762c /src/App.scss
parent6158b8667e6c76c5a5a09b480b82d6f04b8e4885 (diff)
Use class to style screenreader-only text
Diffstat (limited to 'src/App.scss')
-rw-r--r--src/App.scss14
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;
+}