An Accordion element is missing an aria-expanded attribute
| Field | Value |
|---|---|
| Rule code | Manual_Accordion_State_Missing |
| WCAG conformance level | A |
| WCAG success criterion | 4.1.2 Name, Role, Value |
| Must be fixed at source | No |
Description
Elements that act as accordions and trigger functionality need aria-expanded attributes set to false when closed, and aria-expanded true when open. Without aria-expanded attributes, the accordion functionality of buttons or similar elements is not recognized by Screen Readers.
How to fix
Ensure elements that function as accordions or triggers have aria-expanded attributes.