Accordion
A vertical list of collapsible sections, each a trigger with a title and a panel that opens independently of the others.
Why it's built this way
| Decision | Why |
|---|---|
A collapsed panel stays in the page, hidden with hidden="until-found" once it has finished closing, so find-in-page can still find its text and open it. | aria-controls needs the panel to exist while collapsed, and find-in-page should still reach its text. Setting the attribute after the closing animation keeps the animation. |
| When an item closes while focus is inside its panel, focus moves to the item's trigger. | The closed panel becomes inert, which would drop focus to the top of the page and lose the reader's place. |
Every component follows ADR-025, ADR-026 and ADR-028(states, prop vocabulary, focus indicator); they are not repeated per component.