Skip to content

Accordion

Accordions are collapsible content containers that let users reveal or hide sections of content. They reduce cognitive load by surfacing only the most relevant content on first glance and letting users choose how deep to dig.

This component is fully responsive and intentionally designed to be used across all viewports — mobile, tablet, and desktop — with no alternative versions required.

Use the accordion when:

  • You need to present several groups of related information, but not all of it needs to be visible at once.
  • You want to reduce visual clutter and keep the page easier to scan.
  • Users may only need to access some details depending on their specific needs or interests.
  • You want to avoid long scrolling, especially on mobile devices or content-dense pages.
  • The content in each section can be understood independently from the rest.

Avoid the accordion when:

  • The content is essential for understanding the page and should remain visible without interaction.
  • Users need to compare information across multiple sections at the same time.
  • The page only contains one section of information (in that case, display it directly).
  • Frequent opening and closing would interrupt the user’s workflow or slow them down.
Icon and title
Width: 212
Title
Text color:
color-foreground-contrast-emphasis#ffffff
color-foreground-contrast-emphasis#ffffff
Line
Background color:
color-border-contrast-default#d4d2d1
color-border-contrast-default#e4e4e4
Accordion
Width: 312
Border radius: 0

False

Title
Text color:
color-foreground-neutral-default#333333
color-foreground-neutral-default#282830
Line
Background color:
color-border-neutral-muted#999999
color-border-neutral-muted#a8aaac

True

Icon and title
Width: 212
Title
Text color:
color-foreground-contrast-emphasis#ffffff
color-foreground-contrast-emphasis#ffffff
Line
Background color:
color-border-contrast-emphasis#ffffff
color-border-contrast-emphasis#ffffff
Text
Text color:
color-foreground-contrast-default#fbfbfc
color-foreground-contrast-default#fbfbfc

False

Title
Text color:
color-foreground-neutral-default#333333
color-foreground-neutral-default#282830
Line
Background color:
color-border-neutral-muted#999999
color-border-neutral-muted#a8aaac
Text
Text color:
color-foreground-neutral-default#333333
color-foreground-neutral-default#282830

True

Icon and title
Width: 212
Title
Text color:
color-foreground-contrast-emphasis#ffffff
color-foreground-contrast-emphasis#ffffff
Line
Background color:
color-border-contrast-emphasis#ffffff
color-border-contrast-emphasis#ffffff

False

Title
Text color:
color-foreground-neutral-default#333333
color-foreground-neutral-default#282830
Line
Background color:
color-border-neutral-default#282830
color-border-neutral-default#282830

True

Accordion
Border color:
color-border-focus-contrast-default#ffffff
color-border-focus-contrast-default#60a7ff
Border weight: 2
Border radius: 2
Accordion
Contrast: True

False

Accordion
Border color:
color-border-focus-neutral-default#c57046
color-border-focus-neutral-default#0072f0
Border weight: 2
Border radius: 2
Accordion
Contrast: False
NameApplied asApplied to
color-foreground-contrast-emphasis
Text colorAccordion Title
color-foreground-contrast-emphasis
Text colorAccordion Title
color-foreground-contrast-default
Text colorAccordion Title
color-foreground-contrast-default
Text colorAccordion Title
color-foreground-contrast-muted
Text colorAccordion Title
color-foreground-contrast-muted
Text colorAccordion Title
color-foreground-neutral-default
Text colorAccordion Title
color-foreground-neutral-default
Text colorAccordion Title
color-foreground-neutral-emphasis
Text colorAccordion Title
color-foreground-neutral-emphasis
Text colorAccordion Title
color-foreground-neutral-muted
Text colorAccordion Title
color-foreground-neutral-muted
Text colorAccordion Title
color-foreground-neutral-subtle
Text colorAccordion Title
color-foreground-neutral-subtle
Text colorAccordion Title
color-border-neutral-muted
Border colorLine
color-border-neutral-muted
Border colorLine
color-border-neutral-default
Border colorLine
color-border-neutral-default
Border colorLine
color-border-contrast-default
Border colorLine
color-border-contrast-default
Border colorLine
color-border-contrast-emphasis
Border colorLine
color-border-contrast-emphasis
Border colorLine
color-border-contrast-subtle
Border colorLine
color-border-contrast-subtle
Border colorLine
NameApplied asApplied to
Lorem Ipsum
typography-body-6
Text styleText
Lorem Ipsum
typography-body-6
Text styleText
Lorem Ipsum
typography-body-6 (emphasis)
Text styleAccordion Title
Lorem Ipsum
typography-body-6 (emphasis)
Text styleAccordion Title
Guidance on how to use a component.
  • Use it to organize and display content progressively, allowing users to reveal or hide information as needed.
  • Help reduce cognitive overload by showing only the most relevant content at first glance.
  • Use when the user does not need to see all information at once, or when content is grouped by topics or categories.
  • Maintain consistent spacing between accordions to support scannability and visual rhythm.
  • Use clear and descriptive titles for accordion headers to communicate their purpose.
  • When multiple accordions are used, consider whether they should expand independently or as a single-item expansion group (only one open at a time).
  • Keep animations smooth and consistent across variants and themes.
  • Verify that keyboard navigation and focus indicators work properly across all accordion items.
Guidance on what to avoid when using a component.
  • Don’t use accordions to hide critical or frequently needed information. If users must always see the content, it shouldn’t be collapsible.
  • Avoid nesting accordions inside other accordions, as it complicates navigation and accessibility.
  • Don’t use too many accordion items in one view — it may cause scroll fatigue and reduce clarity.
  • Don’t rely on animation alone to signal state change — always provide clear visual or semantic cues.
  • Don’t rely solely on colour or icons to indicate the open/closed state — always include a clear visual cue (e.g. arrow rotation).
  • Don’t remove or modify focus states that help users understand where they are when navigating with a keyboard.
  • Avoid using accordions in layouts with minimal vertical space, where content expansion will disrupt the structure.
Guidance on where this component has been used
  • Each accordion item should contain a title (trigger) and a content area (panel).
  • Titles must be keyboard-focusable and toggle their state using Enter or Space.
  • Only one interactive element should control the expansion to ensure proper accessibility.
  • The expand/collapse icon must rotate or animate consistently to reinforce the state change.
  • Maintain minimum touch target areas (44×44 px) for mobile/touch devices.
  • Keep titles short and scannable, typically one line.
  • Start titles with keywords that help users quickly identify the content.
  • Use sentence case for readability (e.g. “Account details” instead of “ACCOUNT DETAILS”).
  • When possible, use parallel structure across accordion titles (e.g. all start with verbs or nouns).
  • Accordions should use ARIA roles and attributes such as aria-expanded, aria-controls, and aria-labelledby.
  • Ensure all states (collapsed, expanded, hover, focus) meet WCAG 2.1 AA contrast standards.
  • All accordions must be fully operable via keyboard and navigable using Tab, and toggle them with Enter or Space.
  • When an accordion expands, focus should remain on the header for context retention.
  • Avoid disabling accordion headers unless necessary — they communicate interactiveness by design.