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

Industries

Creators

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

Curated: 
3.29.21

Similar items

Join us online at Webflow Conf 2025

View item
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Aether 1 Earbuds

7.1.25

NextStep

6.30.25

Syncmate Webflow App

6.30.25

Taxwire

6.30.25

String

6.26.25

Onebrief

6.26.25

Studio Juicebox

6.26.25

Laurel

6.26.25

Pablo Coronel

6.25.25

Hungry Tiger

6.25.25

Models.dev

6.24.25

Thingy & Thingy

6.23.25

Palmer

6.23.25

Overlay Fact Sheet

6.23.25

Mast

3.13.23

Whalesync

1.8.23

wtf.style

6.16.25

Strive Pharmacy

6.16.25

Tim DP

6.16.25

Ross Dugas

6.16.25

Jetboost

12.3.19

Fathom Analytics

12.1.22

Audienceful

8.1.22

Visual Electric

6.13.25

Jasper

6.12.25

FlowFest 2025

6.12.25

Turn.io

6.12.25

tinyEmail

6.12.25

Superbrick

6.12.25

Hello Robo

6.11.25

ai.work

6.11.25

No-Code Exits

1.21.25

Reasonyx

6.9.25

DawBell

6.9.25

Grace&Favour

6.9.25

Lumana Studio

6.9.25

OMVC

6.9.25

Outseta

8.13.20

Anima Jewelry

6.5.25

Wispr Flow

6.4.25

Cotton Candy

6.4.25

Slater

6.2.23

Tiempo

6.2.25

Wildy Riftian

6.2.25

Control

6.2.25

Xavier Cédric

6.2.25

Morph

6.2.25

Memberstack

12.3.19

Attain

5.30.25

The Thiings Collection

5.30.25

Data Fetcher

5.29.25

TED Conferences

5.29.25
Load more

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.