EN, Change language
Englishالعربية
OM-041

Screen readers must announce whether the accordion item is expanded or collapsed.

The requirement (from the design system site)

Screen readers must announce whether the accordion item is expanded or collapsed.

Why it matters to users

A screen reader user who presses an accordion header needs to hear whether it is now expanded or collapsed. Without that, they cannot tell whether anything opened, and may tab straight past the answer they were looking for.

How to fix it

Set aria-expanded to true or false on each accordion button and update it whenever the panel opens or closes, or use gup-accordion or details and summary, which do this for you. Then scan again.

How we measure it

Every accordion toggle exposes state: aria-expanded="true|false" matching panel visibility, or a native details/summary pair. Pass if all toggles expose state.

The rule on the design system site

Related rules

Accordion state announced · Oman OM-041 | xfix