Skip to content
UI & UX Design

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.

MediaScaleUp Editorial Team 2 min read 17 views
How to Get Accordion Design Right

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
What to do and what to avoid with accordion design, side by side
Good practice against the usual mistakes, from the sources listed below.

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

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.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading