Use of <details>
in Accordion
#2100
Labels
♿️ accessibility
Issues related to accessibility
🕵️ investigate
Needs investigation
react
@digdir/designsystemet-react
Accessible Accordions has long been implemented using div, h*, and a button, as per WAI-ARIA guidelines.
One unfortunate side-effect of using the "traditional" implementation of
Accordion
is thatdisplay:none
is often used to hide the collapsed content, which means users can't search for it using the built in browsers search (ctrl+f).This could be remedied using hidden="until-found", but it lacks browser support.
details is often brought up as a semantic html replacement for this approach, however it lacks good screen-reader support.
Using this issue as an investigate-issue to collect information and decided on potential actions thereof.
Notes
The text was updated successfully, but these errors were encountered: