Skip to content

Create a more accessible theme with better focus indicators #14

@jasonwebb

Description

@jasonwebb

Currently the focus indicators on the previous / next buttons and slide dots are not very ineffective for most people with vision impairments. All that happens is that their opacity is changed, but that change is very subtle and lacks an outline, border, or shadow that many people would expect.

WCAG 2.4.7 says that focus indicators must be "visible", but does a pretty bad job of defining what exactly "visible" means. Technically a subtle change in opacity might be argued as compliant with the exact wording of the guideline, but it clearly does not honor the spirit of the guideline. In a legal scenario, it could really come down to which side has the better lawyers. Why even risk it? Let's add great focus indicators so legal teams don't have to split hairs!

Unfortunately, adding effective focus indicators would be a very noticeable change that could design / dev teams that are used to the current styles. So rather than introducing these indicators to the main slick-theme.scss file, it might be a better idea to spin up an alternative stylesheet and promoting it over the original (without replacing it) for teams who want it.

  • Create a new theme source file (accessible-slick-theme.scss?).
  • Improve focus indicators for the Previous and Next buttons.
  • Improve focus indicators for the slide dots.
  • Ensure the new Sass file is built properly by all the build systems.
  • Add documentation to the main README, with installation instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature to add to the package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions