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

Instatic

7.3.26

The Content Architecture

6.19.26

BaseHub

6.19.26

Neue Academy™

6.19.26

fable-mode

6.19.26

Arcway

6.19.26

Opacity

6.19.26

Index.how

6.19.26

Paxel

6.19.26

Supaste

6.5.26

Cantor8

6.5.26

Simon Holm Studio

6.5.26

Ponder

5.30.26

AI in Design Report 2026

5.30.26

here.now

5.30.26

Scratch

5.30.26

Haven Foods

5.30.26

Index_Georgia

5.30.26

Storesynk

5.25.26

htmlbin

5.19.26

MONOLOG

5.19.26

Interfaces › Design Engineering Magazine

5.19.26

Ploy

5.19.26

Interfere

5.19.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

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.

Subscribe