Carbon: Support prefers-reduced-motion for skeleton states

Created on 27 Mar 2019  ·  10Comments  ·  Source: carbon-design-system/carbon

Some people feel sick when they experience unexpected motion on the web.
The skeleton states animations may be a problem for these people.
There's a relatively new media query called prefers-reduced-motion that was introduced by Apple in Safari, and is supported in Firefox, and soon to be supported in Chrome.
Please consider supporting this so that if a user chooses the "Reduce Motion" setting in their browser/OS, the skeleton states remain static and they do not animate.

medium elements dev 🤖 1 🚨 a11y ♿ enhancement 💡

Most helpful comment

In case it's helpful: a recent post about prefers-reduced-motion:
https://www.scottohara.me/note/2019/07/12/reduced-motion-video.html

All 10 comments

Agreed @carmacleod! Thanks for bringing this up! We should support this up in Carbon elements too so that any motion guidance for IDL comes with this built-in, too 👍

cc @shixiedesign

Just FYI, Chrome 74 has landed, and it does contain the prefers-reduced-motion media query.

We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. Thanks for your contributions.

Not stale. I'd like to get this in soon. Upping the severity as well.

@carbon-design-system/design

Seems like a good idea. @dakahn @joshblack what specifically do you need from design to move forward on this?

Yes but enhancement. Will backlog for July project cycle.

@aagonzales I believe we just want agreement that this is something we'd want to support on the design side, meaning that this is a valid way to represent the Carbon Design System for this user preference (reduced motion).

On the dev side, this would mean that any motion token or curve defaults to instant when this preference is enabled.

In case it's helpful: a recent post about prefers-reduced-motion:
https://www.scottohara.me/note/2019/07/12/reduced-motion-video.html

This is an important enhancement. Thanks for sharing that link @carmacleod

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahoyahoy picture ahoyahoy  ·  3Comments

ConradSchmidt picture ConradSchmidt  ·  3Comments

kalyanixraut picture kalyanixraut  ·  3Comments

AnthumChris picture AnthumChris  ·  3Comments

emyarod picture emyarod  ·  3Comments