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
Possible Addtion: @media(prefers-reduced-motion: reduce) #194
Comments
And this one:
|
Do you know why it requires |
@markhughes I'm guessing it's due to css' specificity, if you import a |
Makes sense! Thanks! |
Thinking more about this, I think that adding I agree that this is a good safety against devs who don't know what they're doing, but there are still cases where easing and small animations are better than none, even for people who prefer reduced motion. One good example is colour changes-- these aren't "motion" but still require transitions and animations. Fading into a colour can be a lot less jarring than switching to it immediately, and the perception of motion can actually be increased by the lack of an animation, which would be counter to the original plan. |
As for the example, I understand why developers add transitions, but if a user has asked for reduced motion, then motion should be reduced, 'preferably to the point where all non-essential movement is removed'. If removing transitions makes it jarring, consider reducing the difference between the states, or better yet don't change the colour at all if the user prefers reduced motion. If you have a situation where you are sure transitions are a good idea, then apply |
That's very fair-- when I made that comment I completely wasn't thinking that In terms of reducing colour contrast, that's actually against web accessibility guidelines, as there should still be high contrast between differing states-- but you're right that there are other options if necessary. |
Note that adding |
|
Added in a1eb7bc |
Hello, I'm comparing css normalizers, and sanitize.css seems to be pretty ideal. However, there is a part of this one which seems like a good idea:
Perhaps it's worth adding to this?
The text was updated successfully, but these errors were encountered: