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
fix(nuxt): disable View Transitions when prefers-reduced-motion: reduce
#22292
Conversation
Run & review this pull request in StackBlitz Codeflow. |
prefers-reduced-motion: reduce
prefers-reduced-motion: reduce
prefers-reduced-motion: reduce
This might help:
|
Ah thanks god knows how I missed that when I read through that post. I was missing the -group pseudo. That appears to be working now. I still feel it's valuable to have an option to skip the transition (it skips the steps of generating the old and new images of DOM) but I get if you would rather this not be the default. I'm not familar with the plugin API does nuxtApp expose an options object? |
withastro/astro#7757 fwiw astro appear to have gone the route of disabling view transitions by default (they used CSS instead) Thanks @rschristian for pointing me to this |
β¦motion preference. Otherwise skip transitions if true
e64d5de
to
a0a8ef7
Compare
Apologies it's taken so long to get back to this. Hopefully the latest commit is correct |
Just double checking is this waiting on me for anything? No worries if it just needs time or other reviews, wanna make sure i'm not the blocker though. |
Nope! It's good to go, and I plan to merge it in time for the next minor release. |
π Linked issue
#22291
β Type of change
π Description
View transitions now early return when the
prefers-reduced-motion
user preference is reduce. This improves the out of the box accessibility of the feature.Resolves #22291
π Checklist