- Docs
- Components
- Navigation
Accordion
Sections that fold, ruled between. Each title is a heading and a button.
- Import
- @qeetrix/react
- Status
- StableSince 0.0.2
- Renders
<h3><button>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| TabTab | To the next title: each is its own Tab stop. |
| EnterSpace | Opens or closes the section. |
02
Behaviour
- Headings
- Each trigger sits in a heading, so the sections are in the page's outline.
- State
- aria-expanded on the trigger; the panel is a region labelled by it.
- Find in page
- A closed section opens when it holds the match.
- Reduced motion
- The height doesn't animate.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Keyboard: every key in the table, in a test
- Forced colours, reduced motion and right to left