Respect prefers-reduced-motion for View Transitions#10762
Respect prefers-reduced-motion for View Transitions#10762mukeshpanchal27 wants to merge 1 commit into
prefers-reduced-motion for View Transitions#10762Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
t-hamano
left a comment
There was a problem hiding this comment.
These changes seem to make sense to me, and I'd appreciate some secondary feedback from those involved in this feature.
westonruter
left a comment
There was a problem hiding this comment.
This had similarly been implemented in the View Transitions plugin for frontend transitions: WordPress/performance#2068
…n is not preferred. Developed in #10762 Follow-up to [61491]. Props mukesh27, wildworks, solankisoftware, westonruter. See #64470. Fixes #64529. git-svn-id: https://develop.svn.wordpress.org/trunk@61502 602fd350-edb4-49c9-b593-d223f7449a82
…n is not preferred. Developed in WordPress/wordpress-develop#10762 Follow-up to [61491]. Props mukesh27, wildworks, solankisoftware, westonruter. See #64470. Fixes #64529. Built from https://develop.svn.wordpress.org/trunk@61502 git-svn-id: http://core.svn.wordpress.org/trunk@60813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…n is not preferred. Developed in WordPress/wordpress-develop#10762 Follow-up to [61491]. Props mukesh27, wildworks, solankisoftware, westonruter. See #64470. Fixes #64529. Built from https://develop.svn.wordpress.org/trunk@61502 git-svn-id: http://core.svn.wordpress.org/trunk@60813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…duced motion is not preferred. Developed in WordPress/wordpress-develop#10762 Follow-up to https://core.trac.wordpress.org/changeset/61491. WP:Props mukesh27, wildworks, solankisoftware, westonruter. See https://core.trac.wordpress.org/ticket/64470. Fixes https://core.trac.wordpress.org/ticket/64529. --- Merges https://core.trac.wordpress.org/changeset/61502 / WordPress/wordpress-develop@73d7a6dcd8 to ClassicPress.
WP-r61502: Administration: Ensure View Transitions only apply when reduced motion is not preferred. Developed in WordPress/wordpress-develop#10762 Follow-up to https://core.trac.wordpress.org/changeset/61491. WP:Props mukesh27, wildworks, solankisoftware, westonruter. See https://core.trac.wordpress.org/ticket/64470. Fixes https://core.trac.wordpress.org/ticket/64529. --- Merges https://core.trac.wordpress.org/changeset/61502 / WordPress/wordpress-develop@73d7a6dcd8 to ClassicPress. Co-authored-by: Weston Ruter <[email protected]> CP:Props xxsimoxx, mattyrob
Trac ticket: https://core.trac.wordpress.org/ticket/64529
This PR addresses accessibility concerns regarding the View Transitions API. Currently, cross-document transitions trigger automatically if enabled, which may cause discomfort or distraction for users with vestibular disorders or motion sensitivities.
Following the principle of Progressive Enhancement, this change ensures that view transitions are only activated for users who have not expressed a preference for reduced motion at the OS level.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.