A11Y: add focus state for advanced search toggles (#17894)
Using `focus-visible` to ensure this only shows when navigating using a keyboard.
This commit is contained in:
parent
3fd929534c
commit
a32019d1e7
|
@ -157,14 +157,21 @@
|
|||
details.advanced-filters,
|
||||
details.search-advanced-additional-options {
|
||||
margin-top: 1em;
|
||||
|
||||
> summary {
|
||||
color: var(--tertiary);
|
||||
cursor: pointer;
|
||||
padding-top: 0.25em;
|
||||
padding-bottom: 0.25em;
|
||||
&:focus-visible {
|
||||
background-color: var(--tertiary-very-low);
|
||||
}
|
||||
}
|
||||
&[open] > summary {
|
||||
color: var(--primary);
|
||||
margin-bottom: 1em;
|
||||
&:focus-visible {
|
||||
background-color: var(--tertiary-very-low);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue