-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should the backgrounds addon respect prefers-reduced-motion? #13612
Comments
cc @yannbf |
Hey @ahuth thanks a lot for pointing this out! @adagar care to share your opinion? You can see result without transitions in #13711 |
While I'm not overly familiar with https://www.smashingmagazine.com/2020/09/design-reduced-motion-sensitivities/ And WCAG guidelines don't count color transitions as a "motion"
|
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.0-alpha.16 containing PR #13711 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
The backgrounds addon sets a transition on the applied background, so that it fades in and out.
Should it take
prefers-reduced-motion
into account, and not transition if someone sets the related OS and browser settings?To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Additional context
We can already prevent the transition with some custom CSS:
I'm wondering if we should build this in to the addon, though. I can put up a pull request to do so if it's what we want.
The text was updated successfully, but these errors were encountered: