The Accordion Panel component is used to hold content within a panel that can be expanded or collapsed. This is ideal for content that does not need to be exposed all at once and is useful for saving space on a page.
Component(s) you might want to use with this one:
Design options Guidelines Accessibility Examples & use cases Tips Training Support
Header: This is the text that will show in the accordion panel's header
Header style: Select an option from the drop-down list; the standard is X-Large
Border style: Select an option from the drop-down list; the standard is Default
Name: (Optional) Enter a URL-safe anchor name so that the panel can be linked to with a hashtag, e.g., /content/concordia/en/web/design/component-documentation-2021/accordion.html#panel-2
Number: (Optional) Enter a number and this will add a label with that number to the left of the accordion panel's header. Note: this feature is rarely used but may be useful for numbering steps in a process.
Open by default: If this is checked, the panel appears expanded when the page loads. If not, users must interact with the accordion by clicking on the arrow to expand it.
Accordions should be used for content of “equal weight” that's not required to be seen all at once, for example FAQ, steps in a process or audience-specific information.
An accordion panel is a container that can hold a collection of components so it can display different types of content such as text, images, tables, media, buttons, etc. Components are added into the drop zone which appears as a dashed rectangle inside the accordion panel.
When using the Accordion Panel component, follow accessibility best practices for all of the content inside the accordion (e.g., heading hierarchy, alt-text on images, descriptive link text, etc.).
An accordion can also be useful in cases where adding a chart or infographic to a page is unavoidable — the accordion would hold the data or written description of the graphic in order to provide an accessible text equivalent.
This is a WYSIWYG component inside accordion panel #1. It contains an H4-level heading and some text in the standard X-Large Text style. We use H4 in order to follow the proper heading hierarchy after the H2 section header “Examples & use cases” and the H3 Accordion panel header “Accordion panel #1 — text and image.”
Accordion panel #1 also contains:
Collapse the panel to hide Grumpy Cat.
Accordion panel #3 contains a Button component. As well, Border style: Dark has been selected for this accordion panel that is positioned inside a Grid Container with a light grey background colour.
Note: In this example, only one panel in this group of panels has a border applied for illustrative purposes. In practice, all the panels in a group of panels should have the same styling for consistency.
In accordion panel #4, Border style: None has been selected. This accordion is positioned inside a Grid Container with a tinted background colour.
Note: In this example, only one panel in this group of panels has been styled with no border against a coloured grid for illustrative purposes. In practice, all the panels belonging to a group of panels should have the same styling for consistency.
The Accordion Panel component is covered in the Advanced training course.
The Web team is here to help.
© Concordia University