Toolbar: Limit the icon transition style to color only.

When transition is `all`, it also applies to the icon size, which can cause a bug in Safari where icons get stuck in the wrong size when resizing the browser window. The only expected animation is on the color property, so the transition can be limited to just `color`.

Props johnjamesjacoby, sabernhardt, SergeyBiryukov, audrasjb.
Fixes #43423.


Built from https://develop.svn.wordpress.org/trunk@51644


git-svn-id: http://core.svn.wordpress.org/trunk@51250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryelle 2021-08-19 17:24:55 +00:00
parent 87bd00ac5b
commit 9d2e8c096f
5 changed files with 5 additions and 5 deletions

View File

@ -249,7 +249,7 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .ab-item:before, #wpadminbar .ab-item:before,
#wpadminbar #adminbarsearch:before { #wpadminbar #adminbarsearch:before {
position: relative; position: relative;
transition: all .1s ease-in-out; transition: color .1s ease-in-out;
} }
#wpadminbar .ab-label { #wpadminbar .ab-label {

File diff suppressed because one or more lines are too long

View File

@ -248,7 +248,7 @@ html:lang(he-il) .rtl #wpadminbar * {
#wpadminbar .ab-item:before, #wpadminbar .ab-item:before,
#wpadminbar #adminbarsearch:before { #wpadminbar #adminbarsearch:before {
position: relative; position: relative;
transition: all .1s ease-in-out; transition: color .1s ease-in-out;
} }
#wpadminbar .ab-label { #wpadminbar .ab-label {

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-51641'; $wp_version = '5.9-alpha-51644';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.