Conformance
Accordion meets WCAG 2.2 level AA when used as described on these pages.
Keyboard
- Tab moves between headings.
- Enter or Space opens or closes a section.
What Accordion gives you
- Headings are buttons with
aria-expandedandaria-controls.
What your team does
- Write headings that say what is inside.
WCAG criteria
| Criterion | Level | How |
|---|---|---|
| 4.1.2 Name, Role, Value | A | Open state is exposed |
| 2.1.1 Keyboard | A | Opens by keyboard |