Media Add or select media dialog does not respect prefers-reduced-motion

Created on 2 February 2024, 5 months ago

Problem/Motivation

The media dialog smooth-scrolls when going to another page even when prefers-reduced-motion is set to reduce.

Steps to reproduce

Steps on a system where prefers-reduced-motion is set to reduce.
1. Create an Umami site in simplytest.me
2. Log in as admin
3. Go to /node/add/page
4. Click the Insert media icon
5. Use Add file section to add 13 additional images
6. Scroll to bottom of Add or select media
7. Click the next page icon to the right of the number 1

Expected result: top of second page of gallery is displayed without animated scroll
Actual result: top of second page of gallery is displayed with animated scroll

Proposed resolution

Don't do a smooth scroll in the add or select media dialog if prefers-reduced-motion is set to reduce.

Merge request link

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 3 hours ago

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.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024