An accordion is a collection of vertically stacked sections with multiple content areas which may be expanded or minimized by the user to reveal their content.
An accordion delivers large amounts of content in a small space through progressive disclosure. The header title give the user a high level overview of the content allowing the user to decide which sections to read. This is useful when the set of information is large or you want to enable users to reveal more complex or less frequently used data as necessary.
Accordions can make information processing and discovering more effective. However, it does hide content from users and it’s important to account for a user not noticing or reading all of the included content. If a user is likely to read all of the content then don’t use an accordion as it adds the burden of an extra click; instead use a full scrolling page with normal headers.
Accordion titles use 13px Clarity City Medium font. The default content font is 14px Clarity city Regular.
When the selected panel is open the panel header has a highlight.
Accordions expand and collapse showing / hiding the data in a section when the user clicks on the panel header. Accordions by default only allow one panel to be open at a time. Multiple open panels are an available implementation option.
Accordions are designed for use in the main content area.
Keep text as brief as possible especially in header sections which should convey the nature of the content without overflow
Accordions by default only allow one panel to be open at a time. To enable multiple panels set
clrAccordionMultiPanel="true" on the
Leverage our optional
*clrIfExpanded structural directive on the
clr-accordion-panel to only instantiate children when they are displayed.
A basic accordion is made up of a set of panels, each with a title and content.
All of the WCAG guidelines apply for the Accordion component. The Accordion component implements all of the necessary accessibility requirements internally for itself.
Applications are responsible for any content inside of the Accordion that may be subject to additional accessibility requirements.
The following general guidelines apply to the design and development of the Accordion.
- Content specific