Page MenuHomePhabricator

Notification overlay doesn't get removed when reduced motion is preferred
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable prefers-reduced-motion: reduce
  • Open the notification popup
  • Try to close the notification popup

What happens?:
The overly moves off the screen, but it doesn't get removed. This prevents you from scrolling the page.

What should have happened instead?:
The overlay should be fully removed.

Software version (skip for WMF-hosted wikis like Wikipedia):

N/A

Other information (browser name/version, screenshots, etc.):

image.png (1×705 px, 193 KB)

The overlay is not removed, it just moves off the page.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This is caused by https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Echo/+/refs/heads/master/modules/mobile/overlay.js#16. transitionend should only be listened for if there's a transition with a duration (prefers-reduced-motion: reduce removes the transition duration).

Change 908581 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[mediawiki/extensions/Echo@master] Exit overlay immediately if no transition

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

Change 908581 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] Exit overlay immediately if no transition

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

For checking after deploying the fix to production:

betalabs - the fix is in place (animated gif)production wmf.5 - the issue is present (animated gif)
- the page is scrollable after dismissing the Notification overlay
reduced_motion_beta.gif (667×391 px, 907 KB)
- the page is NOT scrollable after dismissing the Notification overlay
reduced_motion_production.gif (667×391 px, 837 KB)
Etonkovidova claimed this task.

Checked in wmf.6 - testwiki, cawiki and hewiki: the issue is fixed.