DCJ Digital Design System

Accordion

An accordion is a series of vertically expandable panels, designed to save space on a page by hiding and revealing content. 

Refer to NSW Digital Design System - Accordion for full guidance and demo on how and when to use this component.

Preview

A screenshot of the accordion component with red labels to describe its features.
Labels: 01 title, 02 summary, 03 inline link.

Customisation

The default colour in the accordion background is:

  • Off-white when closed.
  • Your brand dark when expanded. 

Accessibility features

Identify clickable element as a <button> to assistive technology such as screen readers.

DCJ authoring guidelines

The accordion component can be added multiple times to a page. We recommend using the accordion sparingly and consider using other components to manage content.  

Only use an accordion if it’s helpful for users to:

  • see an overview of multiple, related sections of content
  • show and hide those sections as needed

Accordion item

We recommend no more than 10 items per accordion. 

Inline link

A link can be added inside the body text to call a user to action. 

Page type

Accordions can be used on:

  • content pages
  • campaign pages
  • landing pages.

They cannot be used on:

  • homepage
  • Easy Read.
Last updated:

18 Jun 2024