How to Get Accordion Design Right
Vertically stacked headers that expand to reveal content, used to shorten long pages such as FAQs, product specifications and mobile navigation.
On this page
At a glance
- Pattern each header is a button that controls a panel
- State aria-expanded reports whether a section is open
- Native option HTML details and summary elements
- Headings accordion buttons are often wrapped in headings for navigation
Why it matters
Why it matters: Accordions reduce scrolling, but they also hide content, so they work best when users need only some of the sections.
Best practice
- Use accordions when users need only a few sections
- Write headers that describe the hidden content
- Allow several sections open unless there is a reason not to
- Show a clear expand indicator
- Keep critical information visible
Common pitfalls
Watch out for:
- Accordions for content everyone needs
- Nested accordions several levels deep
- Headers that are not buttons
- Collapsing content when users open another section unexpectedly
When to call in a specialist
Bottom line Bring in help when content-heavy pages feel long, or when accordion components fail accessibility testing.
Where this comes from
- W3C ARIA Authoring Practices Guide — Accordion pattern
- Nielsen Norman Group — Accordions on desktop
- GOV.UK Design System — Accordion
The figures and practices above come from the sources listed.
Working on something like this?
We take on UI & UX Design work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.