Accordion usage

#
minutes to read
September 20, 2025

Accordions organize content into collapsible sections, reducing clutter and supporting progressive disclosure. When designed well, they improve scanability without hiding important information.

Overview

Accordions are a common UI pattern for grouping related content while keeping pages concise. They allow users to expand or collapse sections as needed, which works well for FAQs, filters, or secondary details.

But accordions can also harm usability if overused, poorly labeled, or inaccessible. Users may miss hidden content, struggle with navigation, or face accessibility barriers if states are not announced properly.

Best practices

Guidelines for designing and implementing accordions.

Use accordions for secondary or optional content

Importance:
Critical

Accordions are best for content that isn’t essential to complete the main task but provides useful context (for example: FAQ answers, advanced settings, additional details).

Accordion example with sections for product details, delivery information, return & warranty, and customer review, plus expand/collapse all buttons

References:

Provide clear, descriptive headings

Importance:
Critical

Each accordion header should describe the content inside. Avoid vague labels like “More” or “Info.”

References:

Make section headers fully clickable and align icons properly

Importance:
Critical

The entire header area of an accordion section should be clickable, not just the text or the icon.

Icon placement:

  • Position the expand/collapse icon close to the text label to emphasize connection.
  • Alternatively, place the icon to the left of the text for stronger association.
  • Avoid placing the icon too far away from the label, it may look disconnected.

References:

Ensure accessibility with ARIA attributes

Importance:
Critical

Use aria-expanded, aria-controls, and role="button" on headers. Announce expanded/collapsed states to assistive technologies.

References:

Allow only one or multiple sections depending on context

For FAQs, allow multiple panels open at once. For step-by-step flows, restrict to one open panel to reduce clutter.

References:

Provide “Expand all / Collapse all” option

When multiple accordion sections are present, include a global control to expand or collapse all sections at once. It saves time in content-heavy pages and reduces repetitive actions for keyboard and screen reader users.

Implementation details:

  • Place the control above the accordion group.
  • Use clear labels: “Expand all / Collapse all”.
  • The control should dynamically switch its state (if all are open → show “Collapse all”).
  • Must be fully accessible (keyboard + screen readers).

References:

Maintain visible focus states

Importance:
Critical

Accordion headers must be keyboard navigable with clear focus indicators.

References:

Use smooth but fast animations

Animations help users notice changes but should be subtle. Support prefers-reduced-motion.

References:

Common mistakes

Frequent mistakes when using accordions.

Hiding critical information in accordions

Importance:
Critical

Users may miss important details if they remain collapsed by default.

Using vague or repetitive labels

Importance:
Critical

Headers like “Section 1” or multiple “More” buttons force users to open each one to understand content.

Not supporting keyboard navigation

Importance:
Critical

If users can’t expand/collapse with keyboard, accordions become inaccessible.

Overusing accordions for all content

Collapsing too much content forces unnecessary clicking and hurts discoverability.

Summary

Key takeaways for accordions.

  • Accordions are best for secondary or optional content, not critical tasks.
  • Always use clear, descriptive labels for headers.
  • Support accessibility with ARIA attributes, keyboard navigation, and visible focus states.
  • Allow one or multiple open sections depending on context.
  • Avoid hiding key information or overusing accordions unnecessarily.

Well-designed accordions reduce clutter and improve scanability. Poorly designed, they hide information and block accessibility.

Newsletter subscription

Get notified when new guides are published. Subscribe to receive practical UX recommendations straight to your inbox.