Add configurability of fallback image for users who prefer reduced motion in AboutWelcome message surfaces
Categories
(Firefox :: Messaging System, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox106 | --- | fixed |
People
(Reporter: mviar, Assigned: aminomancer)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
To support message designs using animated gifs for Spotlight logos, update the AboutWelcome/Spotlight configuration to accept a fallback image for users who prefer reduced motion.
This could include updating MultiStageProtonScreen's getLogoStyle method (here) to use the correct asset based on user preference (such as window.matchMedia('(prefers-reduced-motion: reduce)') or ui.prefersReducedMotion in user's firefox prefs.
| Assignee | ||
Comment 1•3 years ago
|
||
Add new properties to ProtonScreen logos: reducedMotionImageURL and
darkModeReducedMotionImageURL. These are intended to be used when
imageURL and/or darkModeImageURL is an animated image such as a GIF. If
reduced motion images are passed, they will be used instead of
imageURL/darkModeImageURL if the user has enabled a reduced motion
preference through their OS or Firefox settings. So, consumers can pass
up to 4 logo URLs to be matched with the following media queries:
- imageURL: not (prefers-color-scheme: dark)
- darkModeImageURL: (prefers-color-scheme: dark)
- reducedMotionImageURL: (prefers-reduced-motion: reduce)
- darkModeReducedMotionImageURL: (prefers-color-scheme: dark) and (prefers-reduced-motion: reduce)
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Backed out changeset 4db4c006400a (bug 1780218) for causing browser-chrome failures in browser/components/newtab/test/browser/browser_multistage_spotlight.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/c48904a560bfb19f6e09e0fd06863f812ea56528
| Assignee | ||
Comment 4•3 years ago
|
||
I'm guessing the remote logo never tried to load before the patch? We could switch to a local logo when we're testing, or just replace it with a local resource. There weren't a lot of animated images to pick from in m-c
| Assignee | ||
Comment 5•3 years ago
•
|
||
Another try job for local images
Comment 7•3 years ago
|
||
| bugherder | ||
Description
•