Honour prefers-reduced-motion on homepage
Categories
(Webtools Graveyard :: Pontoon, defect, P1)
Tracking
(Not tracked)
People
(Reporter: erwinm, Assigned: mathjazz)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:88.0) Gecko/20100101 Firefox/88.0
Steps to reproduce:
visit https://pontoon.mozilla.org/
Click "Start Localizing Now," sudden automatic smooth scrolling, migraine.
Actual results:
Tried to report under Product > Mozilla Localizations but can't report there because it's not a bug in any specific localization.
Expected results:
There should be a place to report bugs with pontoon/localization.
Assignee | ||
Comment 1•3 years ago
|
||
Could you please clarify what the bug is about?
It's that it's unclear where on Bugzilla to report bugs with the pontoon/localization site.
The bug with Bugzilla was that it's unclear where to report bugs with the pontoon/localization site.
The bug with Pontoon was that if I click "Start Localizing Now," I get hit with sudden automatic animated scrolling. i.e. smooth scrolling., giving me a terrible migraine. prefers-reduced-motion doesn't protect against this.
Assignee | ||
Comment 4•3 years ago
|
||
We track bugs in Bugzilla, which in our experience most of our users can't use. Until we replace it with something more appealing to the general population (we're considering migrating to GitHub issues, see bug 1688846), there's a "Give Feedback" link in the menu, which takes you to Discourse.
Sorry to hear about the issues you have when clicking on the "Start Localizing Now" link. It should take you to the team page of the locale your browser is set to, e.g. https://pontoon.mozilla.org/de/. Is the loading animation on that page problematic? There should be no animation on the homepage (where the button it).
Thank you. "Start Localizing" leads to a list, but none of the languages I use. "Learn More" still leads to animated scrolling.
Assignee | ||
Comment 6•3 years ago
|
||
OK, thanks for clarifying!
To sum up: the bug is about the smooth animation on the homepage which is triggered by moving between sections of the page, either by clicking on the "Learn More" link, scrolling or using the Up/Down key.
Animation could be problematic for some users, e.g. ones with vestibular motion disorders.
We should honor prefers-reduced-motion and reduce the animation or prevent it completely:
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
Assignee | ||
Comment 8•3 years ago
|
||
MarjaE: There are other places in Pontoon where we use smooth scrolling behavior. I wonder if we should prevent it everywhere when prefers-reduced-motion
is used? Or maybe homepage is specific due to the static background which results in a parallax-like scrolling?
Here's an example in the translate page - if you click the Next button several times, the string list on the left will scroll smoothly to make the selected string always visible. I apologize if this is causing inconvenience for you, but I don't know how else to verify it.
https://mozilla-pontoon-staging.herokuapp.com/sl/amo/all-resources/
I consistently get sick from smooth scrolling or parallax scrolling. Not just the combination.
Assignee | ||
Comment 10•3 years ago
|
||
Thanks for the update and sorry to hear.
I'll amend the patch to disable smooth scrolling across the app.
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Description
•