Media: Make image editor help icon scheme-aware.

The image editor help toggle icon used a hardcoded classic blue color. Replace it with a CSS custom property so the icon follows the user's admin color scheme.

Props dervishov, huzaifaalmesbah, jamesbregenzer, mukesh27, ozgursar, wildworks.
Fixes #64937.
Built from https://develop.svn.wordpress.org/trunk@62481


git-svn-id: http://core.svn.wordpress.org/trunk@61762 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wildworks
2026-06-10 13:31:42 +00:00
parent 80cfce4c73
commit 9ffa8f1026
5 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -1188,7 +1188,7 @@ border color while dragging a file over the uploader drop area */
margin: -1px -1px 0 0;
padding: 0;
background: transparent;
color: #2271b1;
color: var(--wp-admin-theme-color);
font-size: 20px;
line-height: 1;
cursor: pointer;
@@ -1197,9 +1197,9 @@ border color while dragging a file over the uploader drop area */
}
.image-editor .imgedit-settings .imgedit-help-toggle:focus {
color: #2271b1;
border-color: #2271b1;
box-shadow: 0 0 0 1px #2271b1;
color: var(--wp-admin-theme-color);
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -1187,7 +1187,7 @@ border color while dragging a file over the uploader drop area */
margin: -1px 0 0 -1px;
padding: 0;
background: transparent;
color: #2271b1;
color: var(--wp-admin-theme-color);
font-size: 20px;
line-height: 1;
cursor: pointer;
@@ -1196,9 +1196,9 @@ border color while dragging a file over the uploader drop area */
}
.image-editor .imgedit-settings .imgedit-help-toggle:focus {
color: #2271b1;
border-color: #2271b1;
box-shadow: 0 0 0 1px #2271b1;
color: var(--wp-admin-theme-color);
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62480';
$wp_version = '7.1-alpha-62481';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.