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

Advertise with No-Code Supply Co.

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

Tome

4.17.24

Just Salad

4.16.24

Landed

4.16.24

V7

4.16.24

Scada

4.16.24

How to Understand Webflow Pricing

4.16.24

How to Design Better

4.15.24

Switchboard

4.15.24

Atoms.

4.15.24

ThoughtFull™

4.15.24

Special Guest

4.15.24

Partnom Creative

4.15.24

Jules Bassoleil

4.15.24

Thomas Provost

4.15.24

Konpo

4.14.24

Docusign Brand

4.13.24

FORFX

4.12.24

Tedy

4.11.24

Strut

4.11.24

Hang

4.10.24

Wedge

4.9.24

Plain Sight Ventures

4.9.24

Workshop

4.9.24

Supernormal Greens

4.9.24

Typescale

4.8.24

Prerender

4.8.24

Dora

4.8.24

Astro

4.8.24

Superfields

4.8.24

Armur

4.5.24

Relume Site Builder Webflow App

4.4.24

Alvaria Horizons

4.4.24

Exodus 5:1

4.4.24

Bewilder

4.4.24

Ivo

4.4.24

SupClub

4.3.24

Jessica Wells

4.3.24

NeoCultural Couture

4.3.24

Sister Mary

4.3.24

Alice App

4.2.24

Hide Section if Child CMS Collection is Empty in Webflow

4.2.24

Arensbak

4.2.24

Ben's Bites

4.1.24

Happy Valley Farms

4.1.24

gfluo Webflow App

4.1.24

Nomad Animations

4.1.24

Basefront

4.1.24

WES

4.1.24

Datalands

3.29.24

What You Need to Know about Modern CSS (Spring 2024 Edition)

3.29.24

Olivia King

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