1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

[A11Y] Make checkboxes focusable (#3014)

* Add extra feature to a11y focusring mixin

* Add visually hidden CSS class and mixin

* Visually hide checkboxes (keep in focus/a11y tree)

* Place checkbox focus ring around display element

* Improve mobile checkbox/switch accessibility
This commit is contained in:
David Wheatley
2021-08-16 11:56:10 +02:00
committed by GitHub
parent 51ce89b61f
commit 83529e23de
4 changed files with 75 additions and 7 deletions

View File

@@ -148,3 +148,13 @@ blockquote ol:last-child {
font-size: 18px;
color: @muted-more-color;
}
.visually-hidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}