Access to Sliders within Theme JS

Created on 6 September 2024, 3 months ago

Problem/Motivation

To address an accessibility issue, I had to find a way to add a play/pause button to every carousel.

Proposed resolution

Since there aren't any options for this in this module or the Swiper API, my approach was limited to using custom JS from within my site's theme. I've added a simple line of code to this module's JS that sends all present swiper objects to the front-end via drupalSettings. I have provided my initial patch below.

Remaining tasks

Is there a better way to accomplish this?

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ryankavalsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024