Skip to main content
Version: v6

An Accordion element is missing an aria-expanded attribute

An Accordion element is missing an aria-expanded attribute — rule summary
FieldValue
Rule codeManual_Accordion_State_Missing
WCAG conformance levelA
WCAG success criterion4.1.2 Name, Role, Value
Must be fixed at sourceNo

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.