The accordion is a vertically ordered drop-down list, which hides or allows you to view sections and content.
The accordion is a vertically ordered drop-down list, which hides or allows you to view sections and content.
The accordion component has two main states: collapsed and expanded. The chevron icon at the end of the accordion indicates what state the accordion is in. The chevron points downwards to indicate that it is collapsed and can be opened in that direction or upwards to indicate that it is expanded and can be collapsed in the direction indicated by the chevron.
Accordions begin by default in the collapsed state with all content panels closed. Starting in a collapsed state gives the user a high-level overview of the available information. The user can extend each section of the accordion independently, allowing several sections to be opened at once.
This component has been validated to meet the accessibility requirements of UNE-EN 301549:2022, which includes the criteria of WCAG 2.1 (AA), however, changes in content and styles can affect accessibility compliance. We must make sure to review and follow the guidelines in this section when you update or add new content or style to this component.