w3c / aria-practices

WAI-ARIA Authoring Practices Guide (APG)
https://www.w3.org/wai/aria/apg/
Other
1.18k stars 310 forks source link

Consider adding a "show all" / "hide all" toggle button to accordion example #2222

Open DavidMacDonald opened 2 years ago

DavidMacDonald commented 2 years ago

https://w3c.github.io/aria-practices/examples/accordion/accordion.html

Consider having a toggle button above the accordion (perhaps situated to the top right) that has the label "show all" and it would toggle to "hide all"

There are times when there is a long list of show hide content where the user might want to just hit one button to show everything.

Below is a screen shot with suggested placement of the button above the accordion to the right.

image

ZoeBijl commented 2 years ago

Could we possibly add this as a keyboard interaction too? Something like Shift+Space to toggle all fields?