Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Support prefers-reduced-motion
in CSS.
See #2928103: [policy, no patch] Use "prefers-reduced-motion" media query to disable animations for reasoning
Comment | File | Size | Author |
---|---|---|---|
#21 | 2940677-21.patch | 920 bytes | Gauravvvv |
#3 | 2940677-3.patch | 1.49 KB | tedbow |
Comments
Comment #2
tedbowComment #3
tedbowOk here is a try at this.
Comment #4
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedComment #5
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedThanks for starting a patch @tedbow. I'll try it when I'm near a Mac and Safari.
The off-canvas dialog is probably a high-risk animation for users affected by vestibular disorders, etc.. I'm going by the fact that it involves a large portion of the viewport, especially on the top-edge demo GIFs we'veseen for the Workspaces UI, though I'm not clear exactly how to assess animation risks.
Taking #2916781: Allow off-canvas dialog to be rendered at the top of the page and #2951547: Modify Layout Builder's use of the off-canvas tray to improve UX of larger block forms into account, it looks like several experimental modules are looking to use the off-canvas feature, with bigger dimensions than we currently have.
I think this issue ought to be a should-have for experimental modules which employ off-canvas from now on. It's coming in at AAA level in WCAG 2.1, so it's not a cornformance requirement for our a11y QA gate. But it is high-impact for affected users, and looks easy to implement. I'll mention this on the relevant big-plan issues for these initiatives, when I figure out which issues they are ;-)
Comment #6
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commented"Visually-induced motion sickness". Adding a tag for @mgifford - he's linking to it from various external sites, like upstream issue queues for browser vendors.
Comment #8
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commented@tedbow - what's the purpose of the opacity here?
Why not
transition: none;
?Comment #9
tim.plunkettFixing tags
Comment #11
mgiffordAccording to this 2015 A List Apart Article
.
So it would be a low risk. Is there a UX advantage @tedbow?
Comment #20
mgiffordWe should definitely support this.
Comment #21
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedI have attached a patch to remove transition on
#drupal-off-canvas-wrapper summary
. please reviewComment #22
smustgrave CreditAttribution: smustgrave at Mobomo commentedThink the issue summary should be updated to include screenshots of the changed behavior.