1
0
mirror of https://github.com/flarum/core.git synced 2025-07-31 21:50:50 +02:00

[A11Y] Accessibility improvements for the Search component (#3017)

* Remove deprecated code

* Accessibility improvements for Search component
This commit is contained in:
David Wheatley
2021-09-20 16:06:15 +01:00
committed by GitHub
parent c1a8c6c190
commit 5dd48e1b86
4 changed files with 71 additions and 13 deletions

View File

@@ -1,5 +1,16 @@
.Search {
position: relative;
&-clear {
// It looks very weird due to the padding given to the button..
&:focus {
outline: none;
}
// ...so we display the ring around the icon inside the button, with an offset
.add-keyboard-focus-ring-nearby("> *");
.add-keyboard-focus-ring-nearby-offset("> *", 4px);
}
}
@media @tablet-up {
.Search {