Page MenuHomePhabricator

Donate button: Address reduced motion a11y for donation GIF
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

This task encompasses the work required to create a more accessible reduced motion experience for the new donate button on MinervaNeue.

User story

  • Add a user who prefers an experience with reduced animations (due to vestibular conditions or otherwise) I expect Wikipedia to honour that preference and serve a mobile web UI with no animations.

Requirements

  • Ensure the animation does not run if the OS or browser has "reduce motion" settings enabled.

BDD

Scenario 1: Animation does not run if motion reduction settings are enabled

Given I have enabled "Reduce Motion" settings in my OS or browser
When I load the page
Then The animation should not run
And The interface should remain static

Test Steps

  1. Open Chrome DevTools.
  2. Go to the Rendering Tab.
  3. Scroll down to Emulate CSS prefers-reduced-motion and select Reduce.
  4. Refresh the page.
  5. AC1: The static image (puzzle.png) is displayed.

Screenshot 2025-03-12 at 1.00.14 PM.png (1,064×759 px, 131 KB)

Design

TODO: a static PNG version of the following image should be provided.

QA Results - Beta

ACStatusDetails
1T388446#10631317

QA Results - Prod

ACStatusDetails
1T388446#10676699

Acceptance criteria

  • The animation does not run when motion reduction settings are enabled in the OS or browser.

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

Jdrewniak set the point value for this task to 1.

@JScherer-WMF We need a static svg version of the GIF. Please reassign back to me when you've added it here. Thank you!

Change #1126667 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaMessages@master] Support non-animated reduced motion image for accessibility

https://gerrit.wikimedia.org/r/1126667

Change #1126668 had a related patch set uploaded (by LorenMora; author: LorenMora):

[mediawiki/skins/MinervaNeue@master] Lazy load gif and support reduced motion

https://gerrit.wikimedia.org/r/1126668

Change #1127114 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[operations/mediawiki-config@master] Add donation banner images

https://gerrit.wikimedia.org/r/1127114

Change #1126668 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Lazy load gif and support reduced motion

https://gerrit.wikimedia.org/r/1126668

Change #1127114 merged by jenkins-bot:

[operations/mediawiki-config@master] Add donation banner images

https://gerrit.wikimedia.org/r/1127114

Mentioned in SAL (#wikimedia-operations) [2025-03-12T20:08:21Z] <jdrewniak@deploy2002> Started scap sync-world: Backport for [[gerrit:1127065|Fixes event logging for main menu button (T387768)]], [[gerrit:1127114|Add donation banner images (T388446)]]

Mentioned in SAL (#wikimedia-operations) [2025-03-12T20:11:24Z] <jdrewniak@deploy2002> jdrewniak, jdlrobson: Backport for [[gerrit:1127065|Fixes event logging for main menu button (T387768)]], [[gerrit:1127114|Add donation banner images (T388446)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-03-12T20:23:03Z] <jdrewniak@deploy2002> Finished scap sync-world: Backport for [[gerrit:1127065|Fixes event logging for main menu button (T387768)]], [[gerrit:1127114|Add donation banner images (T388446)]] (duration: 14m 42s)

Change #1126667 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Support non-animated reduced motion image for accessibility

https://gerrit.wikimedia.org/r/1126667

Edtadros subscribed.

Test Steps

Status: ✅ PASS
Environment: Beta
OS: macOS
Browser: Chrome
Device: MS


Test Case 1: Verify animation does not run when “Reduce Motion” is enabled

  1. Open Chrome DevTools.
  2. Go to the Rendering Tab.
  3. Scroll down to Emulate CSS prefers-reduced-motion and select Reduce.
  4. Refresh the page.
  5. ✅ AC1: Confirm that the static image (puzzle.png) is displayed instead of the animation.

screenshot 22.mov.gif (1,254×1,250 px, 1 MB)

Test Steps

Status: ✅ PASS
Environment: Prod
OS: macOS
Browser: Chrome
Device: MS


Test Case 1: Verify animation does not run when “Reduce Motion” is enabled

  1. Open Chrome DevTools.
  2. Go to the Rendering Tab.
  3. Scroll down to Emulate CSS prefers-reduced-motion and select Reduce.
  4. Refresh the page.
  5. ✅ AC1: Confirm that the static image (puzzle.png) is displayed instead of the animation.

screenshot 31.mov.gif (1,098×1,186 px, 988 KB)