Support prefers-reduced-motion in CKEditor Accordion

Created on 15 August 2024, 3 months ago

Problem/Motivation

If an administrator has enabled accordion animation or left it enabled as the configuration default, I believe the accordion will animate regardless of the site visitors motion preference setting.

Steps to reproduce

I am unable to test this due to blocking issue πŸ› Adding accordion to CKEditor toolbar gets error Active but the code has no reference to prefers-reduced-motion, so I'm pretty sure the module does not support it.

Proposed resolution

Update the generated accordion code to not animate if prefers-reduced-motion is set to reduce.

The best practice would be to suppress the accordion animation if the site visitor has indicated that they don't like animation. Note that "reduce" is an artifact of history that that is the terminology Apple, who got there first, used. Windows and Android using language indicating it is all or nothing. Further, there is no way to determine why the user has chosen to set this or what is a safe animation for such a user.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • VIMS

    Visually induced motion sickness

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024