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

Affordable on-demand Webflow maintenance

View item

Advertise with No-Code Supply Co.

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

Unfold

6.14.24

Crymbo

6.14.24

Kabata

6.14.24

Buildspace

6.14.24

Planhat

6.14.24

Drug Test Innocence

6.11.24

Tubik

6.11.24

Plain

6.11.24

Obliques

6.11.24

Mast

3.13.23

Some Yellow

6.7.24

Standard Equipment

6.7.24

Heva Health

6.7.24

Art Money

6.6.24

Colin & Samir

6.6.24

Whalesync

1.8.23

Canadian Seafood Treasures

6.6.24

Jetboost

12.3.19

Claudio Guglieri

6.5.24

Precious

10.15.21

Fathom Analytics

12.1.22

Seen

6.4.24

Bytebot

6.3.24

Alta Trattoria

6.3.24

Ginkgo Sociotechnical Studio

6.3.24

Audienceful

8.1.22

Stewart-Schäfer

6.1.24

Make Any Framer Component With ChatGPT

6.1.24

Memberstack

12.3.19

Modular

5.30.24

Slater

6.2.23

Decoding Bio

5.29.24

GoPidge

5.29.24

School of Motion

5.29.24

Spark Advisors

5.28.24

FlowScripts GPT - GSAP Code for Webflow

5.26.24

folk

12.19.22

Mersol

5.23.24

O'shane Howard

5.22.24

Wavebird

5.22.24

Mizzi Studio

5.22.24

Shape Shyft

5.22.24

NaughtyDuk

5.22.24

Park

5.22.24

Outseta

8.13.20

Leya

5.19.24

Renew Home

5.17.24

OPAL

5.17.24

Alberto Brilli

5.17.24

Workflow

5.17.24

Figdam

5.16.24

Thomas Nicholas

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

Subscribe