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.

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

Storipress

2.3.25

Metabase

2.3.25

Dessn

2.3.25

Powersave

2.3.25

Daniel Sun

2.3.25

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

Line Height Trim

1.28.25

Runloop AI

1.28.25

Mast

3.13.23

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

Whalesync

1.8.23

Bulk edit SEO title and description in Webflow

1.25.25

Val town

1.23.25

Sygnal Attributes

1.23.25

Jetboost

12.3.19

Fathom Analytics

12.1.22

Audienceful

8.1.22

Dropbox Brand Guidelines

1.18.25

No-Code Exits

1.21.25

Outseta

8.13.20

SingleStore

1.14.25

Radius Calculator

1.14.25

Snowhouse Studio | Year in Review 2024

1.14.25

Framer Commerce

1.11.25

Slater

6.2.23

Memberstack

12.3.19

State of JavaScript 2024

1.8.25

Agent Pages

1.7.25

Bland AI

1.7.25

Lindy.ai

1.7.25

E2B

1.7.25

Phidata

1.7.25

Greenlite

1.7.25

Relevance AI

1.7.25

HTMLtoflow Webflow App

1.6.25

NIKI Studio

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