Skip to content
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

Remove prefers-reduced-motion emulation #27

Merged
merged 1 commit into from
May 17, 2022

Conversation

nicholasray
Copy link
Contributor

Unfortunately, the transition-duration in
Ie1c6c1ba7263c232d874263fdae7427a5ec489f6 is causing elements to behave in an
unpredictable manner. Removing the prefers-reduced-motion is now more
stable/predictable than using it.

@nicholasray nicholasray force-pushed the remove-prefers-reduced-motion branch from 6f593d2 to 8f6f074 Compare May 17, 2022 21:45
@jdlrobson
Copy link
Member

On the plus side.. we did a good thing for a11y! :D

Unfortunately, the `transition-duration` in
Ie1c6c1ba7263c232d874263fdae7427a5ec489f6 is causing elements to behave in an
unpredictable manner. Removing the `prefers-reduced-motion` is now more
stable/predictable than using it.

Also, wait until next frame in `fastForwardAnimations`. Note there is still some
flakiness with the visibility of the mobile sidebar that needs to be sorted out
but this should help with the other random stuff.
@nicholasray nicholasray force-pushed the remove-prefers-reduced-motion branch from 8f6f074 to 703335a Compare May 17, 2022 22:51
@nicholasray
Copy link
Contributor Author

Hoping this helps with the randomness thats happening and if not we can revert it. I'm still noticing failures on the mobile site with the sidebar now showing sometimes that I need to look into

@nicholasray nicholasray merged commit f3ed2a7 into main May 17, 2022
@nicholasray nicholasray deleted the remove-prefers-reduced-motion branch May 17, 2022 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants