Administration: Ensure View Transitions only apply when reduced motion is not preferred.

Developed in https://github.com/WordPress/wordpress-develop/pull/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
This commit is contained in:
Weston Ruter
2026-01-20 18:23:33 +00:00
parent 513a922ec4
commit 612813b181
3 changed files with 9 additions and 7 deletions

View File

@@ -1,7 +1,9 @@
@view-transition {
navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
@view-transition {
navigation: auto;
}
#adminmenu > .menu-top {
view-transition-name: attr(id type(<custom-ident>), none);
#adminmenu > .menu-top {
view-transition-name: attr(id type(<custom-ident>), none);
}
}

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
@view-transition{navigation:auto}#adminmenu>.menu-top{view-transition-name:attr(id type(<custom-ident>),none)}
@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}#adminmenu>.menu-top{view-transition-name:attr(id type(<custom-ident>),none)}}

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-alpha-61501';
$wp_version = '7.0-alpha-61502';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.