WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Accordion Group and Role Region

for

From: glen walker
Date: Apr 27, 2023 9:59AM


As Geetha said, you generally don't need a region container around the
accordion since a user can navigate by heading or button. However, if you
have several accordions on your page and you want to distinguish them from
each other and allow the user to quickly navigate to each accordion, then a
region might make sense.

If the user navigates by heading or button, they'll have to go through each
heading or button in each accordion (as well as any other headings or
buttons on the page) before getting to the next accordion. Navigating by
region (assuming it has an accessible name) could make it faster to
navigate directly to the accordion and bypass all the headings and buttons
within each accordion. But that also assumes you don't have regions around
other parts of the page that might get in the way of navigating to the next
accordion region.