-
Notifications
You must be signed in to change notification settings - Fork 75
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
Enhancement: [_animation.scss] add reduced motion support for .calcite-animate global CSS class #3489
Comments
Any traction on this? I just received another complaint from a site visitor about animations not respecting reduced motion. This is important for accessibility. |
@tim-white-esri Thanks for re-pinging this issue. We'll be adding this to our upcoming sprint. This could be a workaround in the meantime. |
The solution will update the internal duration factor based on user preferences. This will still give developers the flexibility to override the animation, but would not be supported by Calcite. |
Installed and assigned for verification. |
Experiencing some unexpected behavior in Windows with the Rerouting back to dev, @anveshmekala where this line could be causing the unexpected behavior. |
Blocked by #5206. Since the duration cannot be set to We can either:
|
Same experience as mentioned in #3489 (comment) on macos with the "Reduce motion" option enabled through Preferences -> Accessibility -> Display |
**Related Issue:** #3489 ## Summary This PR will stop the loader from animating when reduced motion is enabled.
Installed and assigned for verification. |
Verified on Windows and Mac OS when reduced motion is enabled in |
Description
Add
prefers-reduced-motion
CSS media feature for the.calcite-animate
global CSS class. This will ensure animations only apply when the prefers-reduced-motion media feature matchesno-preference
on a system (ie., the class will only animate if a user hasn't enabled "Reduce motion" on their system).Proposed change (courtesy @tim-white-esri):
Acceptance Criteria
The src/assets/styles/_animation.scss global stylesheet includes the new CSS media features (above snippet) for the .calcite-animate class.
Relevant Info
See pr #2607 related file changes for helpful information on using the global class.
Which Component
n/a (global class)
Example Use Case
n/a
The text was updated successfully, but these errors were encountered: