Support Accessible Slick

Created on 4 February 2021, over 3 years ago
Updated 7 April 2024, 3 months ago

Currently we are getting more requests that our sites need to comply with WCAG criteria and one of the most problematic features seems to be the sliders.

I noticed that there is an drop in replacement for Slick which has much better support for accessibility at https://github.com/Accessible360/accessible-slick.

The default Slick version seems to be last updated in 1.8.1 and the drop in replacement seems to be in active development.

I tested replacing the original Slick library in the module by installing the Accessible Slick to the same location and then adjusting the library paths like so:

js:
    /libraries/slick/slick/slick.min.js: { weight: -3, minified: true }
  css:
    base:
      /libraries/slick/slick/slick.min.css: {}
      /libraries/slick/slick/accessible-slick-theme.min.css: {}

This gave me 99% the same look as the original slider except for small color changes and the new pause button which needs positioning. Took me around ~2 hours to implement.

Could we add this as an option to the module?

I would suggest that we add the accessible version of Slick as a separate library to the module and when the Accessibility option is checked in the module settings it would load the different library JS files and also add the needed theme files or the accessible skin could be also added as an option to the module which you could select instead of the default one.

Remaining Tasks

Side issues

✨ Feature request
Status

Needs work

Version

3.0

Component

Accessible Slick

Created by

🇫🇮Finland HeikkiY Oulu

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024