Accessibility: Administration: Respect the prefers-reduced-motion media query for update icon spinner animations.
The update icon rotation should not occur when the user has opted to reduce motion, for example by selecting the "Reduce motion" option in macOS' preferences or unselecting "Show animations in Windows" in Windows' preferences. Follow-up to [47813], [50027]. Props xkon, audrasjb, johnbillion. Fixes #52263. See #51476. Built from https://develop.svn.wordpress.org/trunk@50028 git-svn-id: http://core.svn.wordpress.org/trunk@49729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -594,6 +594,12 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
animation: rotation 2s infinite linear;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search
|
||||
*/
|
||||
|
||||
2
wp-includes/css/admin-bar-rtl.min.css
vendored
2
wp-includes/css/admin-bar-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -593,6 +593,12 @@ html:lang(he-il) .rtl #wpadminbar * {
|
||||
animation: rotation 2s infinite linear;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
#wpadminbar #wp-admin-bar-updates.spin .ab-icon:before {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Search
|
||||
*/
|
||||
|
||||
2
wp-includes/css/admin-bar.min.css
vendored
2
wp-includes/css/admin-bar.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user