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

Get hired at Toggle Accordion Attributes for Accessibility

We've partnered with startups.gallery to help you find new opportunities at the leading startups in design, development, and AI.

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.

Primer

4.13.26

CSS Studio

4.13.26

Rivet

4.13.26

html-in-canvas

4.13.26

Portable Text

4.13.26

Making Software

4.13.26

Ultramock

4.13.26

Champions for Good Club

4.13.26

heerich.js

4.13.26

The logo soup problem (and how to solve it)

4.13.26

Omma

3.25.26

Vooma

3.25.26

playbit

3.25.26

Pascal Editor

3.25.26

Convex

3.25.26

GEO-first SEO skill for Claude Code

3.25.26

Package by Visualize Value

3.25.26

Limble

3.25.26

Recordly

3.25.26

Mockdown

3.25.26

miniExtensions for Airtable

3.25.26

Diamond Rose Sanctuary

3.25.26

Selected

3.25.26

typeui.sh

3.8.26

Variant

3.8.26

QuiverAI

3.8.26

Google Workspace CLI

3.8.26

Modern CSS Code Snippets

3.4.26

Cipher

3.4.26

dogfood by vercel-labs

3.4.26

History of Software Design

3.4.26

React Doctor

2.20.26

ui.sh

2.20.26

Markdown Routes with Next.js

2.20.26

React Grab

2.20.26

Agentation

2.10.26

Ship Studio

2.10.26

Typograph Studio

2.10.26

find-skills skill

1.31.26

Farm Minerals

1.31.26

Mason Wong

1.31.26

Letta

1.23.26

Pencil

1.23.26

Conductor

1.23.26

1820 Productions

1.23.26

The Agent Skills Directory

1.23.26

Everything Claude Code Plugin

1.23.26

Ralph Wiggum

1.23.26

Sanity

1.23.26

Miriad

1.23.26

in progress works

1.23.26

Give your agent a laboratory

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