Add support for the prefers-reduced-motion
media feature
#1724
Labels
enhancement
New feature or request
prefers-reduced-motion
media feature
#1724
Is your feature request related to a problem? Please describe.
We have React components that rely on a media query to remove/reduce nonessential animations CSS transitions based on this setting, and it would be great if our unit tests for these components could use this as well (especially since it simplifies things like faking timers or waiting for elements to appear/disappear in the DOM).
Describe the solution you'd like
I have a working implementation that we're using locally with
pnpm patch
and I'm going to submit a PR for that so it can be reviewed and hopefully added to the project.Describe alternatives you've considered
I have a proposed implementation.
The text was updated successfully, but these errors were encountered: