Toggle Accordion Attributes for Accessibility

Toggle Accordion Attributes for Accessibility

Enhance the accessibility of an accordion component by toggling an aria-expanded attribute when the accordion is opened or closed.

.accordion-trigger would be the button that triggers the accordion to open and close on click, and should start with an attribute of aria-expanded="false" that is set within the Webflow Designer. The direct sibling element to the trigger would have the class of .accordion-content and is what is changed with interactions to be hidden/shown and size is set to 0/auto.

For another great accessible accordion example see: https://webflow.com/accessibility/checklist/task/ensure-accordions-are-keyboard-navigable

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
3.29.21

Similar items

Items
2771
Search

Egregore

9.10.26

Fimo

9.9.26

vgpu

9.8.26

DialKit

9.8.26

playgrnd

9.8.26

Restock

View Restock

DesEngs

9.8.26

Refero Styles

9.8.26

Viewport

9.7.26

Daniel Sun

8.24.26

Toolcraft

8.24.26

21Oaks

8.11.26

Rows

8.11.26

squig

8.11.26

Stacki by flowtricks

8.11.26

Taste Skill

8.11.26

Butter Video

8.11.26

Migrating from Webflow to Sanity

7.17.26

Artemii Lebedev

7.17.26

Flocker

7.17.26

Legartis

7.17.26

Modulify AI

7.15.26

Recent

7.3.26

Agent-Native

7.3.26

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters