Skip to content

Commit 73d7a6d

Browse files
committed
Administration: Ensure View Transitions only apply when reduced motion is not preferred.
Developed in WordPress#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
1 parent bd378ad commit 73d7a6d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
@view-transition {
2-
navigation: auto;
3-
}
1+
@media (prefers-reduced-motion: no-preference) {
2+
@view-transition {
3+
navigation: auto;
4+
}
45

5-
#adminmenu > .menu-top {
6-
view-transition-name: attr(id type(<custom-ident>), none);
6+
#adminmenu > .menu-top {
7+
view-transition-name: attr(id type(<custom-ident>), none);
8+
}
79
}

0 commit comments

Comments
 (0)