User Guide

Accordion Component

The Accordion is a vertically stacked list of headers that reveal or hide associated sections of content.

Overview

Component name: Accordion

Authors who can use: all

Templates/page types that can use component: all

Required or optional: optional

Authoring Fields

Adding the Accordion component to the page

Once on the desired page in Edit mode, add the Accordion by doing the following:

Option 1: Double click on “Drag components here.” A modal titled “Insert New Component” will pop up. Type “Accordion” in the search bar, or scroll to the Accordion in the list. Double click to add to page.

Option 2: On the left hand rail, navigate to the Components tab. Type “Accordion” in the search bar, or scroll to the Accordion in the list. Double click to add to page.

Editing the Accordion component

1. With the edit wrench, open the component.

Accordion toolbar, including the edit wrench

2. Items Tab

  1. “Item 1,” “Item 2” fields: The author can edit the title of the Accordion sections.
  2. Add button: The author can use the search to add more sections to the Accordion. For example, the author may select the Container component. There are two Container components added by default while authoring the Accordion, and Text or other components may be placed within.  
    1. Any new section must be given a title. 
Accordion authoring dialog, showing the Items tab
Insert New Component options to add to each Accordion dropdown.

3. Properties tab       

  1. Accordion Context Title Heading Level: Select heading level for the title above the Accordion, from H2-H6.
  2. Accordion Context Title: Add a title to display above the Accordion.
  3. Accordion Context Short Description: Add a description to display above the Accordion.
  4. Accordion Title Heading Level: Select heading level for each item in the Accordion, from H2-H6.
  5. Open Accordions checkbox: Set the Accordion to either have all tabs default expanded or collapsed. Default unchecked.
Accordion authoring dialog, showing the Properties tab

4. Select ‘Done’ to save the authoring changes.

5. There are two ways to edit the items in each Accordion tab.

  1. Option 1: From the edit toolbar, select the Select panel button (three boxes with a checkmark). This opens each tab for editing.
Accordion edit toolbar, displayed over the Accordion items that were authored

2. Option 2: From the authoring dialog, click the Open Accordions checkbox. This opens each tab for editing, and will show the tabs open by default once published.

Accordion examples

Accordion with tabs expanded Figure A: Accordion with tabs expanded.
Accordion with tabs collapsed Figure B: Accordion with tabs collapsed.

Accessibility

  1. Ensure that the heading level of the Accordion title, and of each Accordion tab, is set according to the rest of the page’s hierarchy.

Other tips

  1. Use the Emulator widget to test Accordion size on different devices.
  2. Accordions should be used to organize related information and to reduce scrolling when content is not crucial to be read in full.
  3. As Accordions hide content, it’s important to recognize that residents may not notice or read all tabs. If a resident is likely to need and read all content, don’t use an Accordion – use a regular page with clear section headers.
  4. Residents can expand and collapse individual Accordion tabs by clicking the chevron at the right of each tab.
  5. The title of each Accordion tab should be as brief as possible while still being clear and descriptive. Content within each Accordion tab may be longer – it can be split into paragraphs and include sub-headers if needed.