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

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

Zyphra

2.18.25

Zyphra

2.18.25

ImageFX

2.18.25

Midlife Engineering

2.18.25

Dylan Brouwer

2.17.25

Byooooob

2.16.25

Softgen

2.15.25

Loti

2.15.25

WeWeb 3.0

2.15.25

Clean Styles Webflow App

2.15.25

Flowman

2.14.25

AI is the New Medium

2.12.25

Astral Frontier

2.12.25

Medusa

2.10.25

Webflow SEO Checklist

2.7.25

Fluid Builder Webflow App

2.6.25

Jace AI

2.4.25

Build Canada

2.4.25

Mast

3.13.23

Storipress

2.3.25

Metabase

2.3.25

Dessn

2.3.25

Powersave

2.3.25

Daniel Sun

2.3.25

Whalesync

1.8.23

GitHub Next

1.31.25

GitHub Mosaic

1.31.25

Stripe Webflow App

1.31.25

Basedash

1.29.25

Lil Frog

1.29.25

Jetboost

12.3.19

Line Height Trim

1.28.25

Runloop AI

1.28.25

Fathom Analytics

12.1.22

Portal

1.28.25

Proper Prompts

1.28.25

Tempo Labs

1.27.25

Hishaam

1.27.25

Vellar Sound

1.27.25

Studio Direction

1.27.25

Digidop

1.27.25

Onlook

1.27.25

Audienceful

8.1.22

Bulk edit SEO title and description in Webflow

1.25.25

Val town

1.23.25

Sygnal Attributes

1.23.25

No-Code Exits

1.21.25

Outseta

8.13.20

Dropbox Brand Guidelines

1.18.25

Slater

6.2.23

Memberstack

12.3.19

SingleStore

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