Why it's worth reading: Designers building disclosure content may soon get a native exclusive accordion, which the author says can make pages harder to use and needs user controls.
Summary by Mosaic, Designed's AI · may contain mistakes
You might not have noticed it, mainly because it was so quick, but a new HTML functionality is due to arrive in Chromium and WebKit browsers: Exclusive Accordions.[^ Yes, from starting the explainer, which has no serious exploration of the accessibility impact, to almost shipping in browsers in less than 9 months. Move fast, break things for disabled people.] [^ This has shipped in the following browsers:
Chrome 120 (Release date: 2023-12-05), Edge 120 (2023-12-07), Firefox 130 (2024-09-03), Opera 106 (2023-12-19), and Safari 17.2 (2023-12-11). No browser mitigates the risks outlined in this article.]
What are exclusive accordions?
Accordions are a series of expand/collapse (aka disclosure) widgets. Usually they start collapsed, and you can open each section one by one. Exclusive accordions close any previously opened section automatically when a new one opens. It means only one section of the accordion can be open at once.
A new proposal now wants to make the existing <details> element into an accordion by grouping them when adding a name attribute to it. Such an element's open state would then automatically be false (hiding the content) when another element’s open state is set to true, if those two <details> have the same name attribute value.
What are the accessibility challenges with exclusive accordions?
There are some accessibility challenges with all types of accordions, but most of them are even worse when only one accordion section can be open at a time. Here are a few examples:
Higher cognitive load as users are unable to compare information between two sections, the accordion resetting on page reload, added difficulty in scanning and getting a general overview of the information provided.
More complicated interaction for keyboard users who need to navigate maybe multiple times through multiple expand/collapse button to extend one section, then navigate to the next section and open that, then to the next to open that.