diff options
| author | tusooa <tusooa@kazv.moe> | 2023-01-28 22:10:06 -0500 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-01-28 22:10:06 -0500 |
| commit | 6158b8667e6c76c5a5a09b480b82d6f04b8e4885 (patch) | |
| tree | 81b23c3bfc3935220a8bd08f716433a3c0a21d62 /src/components/checkbox | |
| parent | f229c4a106b574e8a3de38fe06ef84dc11493fad (diff) | |
Make checkbox settings accessible
Diffstat (limited to 'src/components/checkbox')
| -rw-r--r-- | src/components/checkbox/checkbox.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/checkbox/checkbox.vue b/src/components/checkbox/checkbox.vue index 7139d4fc..ac7acd52 100644 --- a/src/components/checkbox/checkbox.vue +++ b/src/components/checkbox/checkbox.vue @@ -10,7 +10,10 @@ :indeterminate="indeterminate" @change="$emit('update:modelValue', $event.target.checked)" > - <i class="checkbox-indicator" /> + <i + class="checkbox-indicator" + :aria-hidden="true" + /> <span v-if="!!$slots.default" class="label" @@ -33,6 +36,7 @@ export default { <style lang="scss"> @import "../../variables"; +@import "../../mixins"; .checkbox { position: relative; @@ -81,7 +85,7 @@ export default { } input[type="checkbox"] { - display: none; + @include visible-for-screenreader-only; &:checked + .checkbox-indicator::before { color: $fallback--text; |
