Make WordPress Core

Changeset 62481


Ignore:
Timestamp:
06/10/2026 01:30:14 PM (2 months ago)
Author:
wildworks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/media.css

    r62326 r62481  
    11881188        padding: 0;
    11891189        background: transparent;
    1190         color: #2271b1;
     1190        color: var(--wp-admin-theme-color);
    11911191        font-size: 20px;
    11921192        line-height: 1;
     
    11971197
    11981198.image-editor .imgedit-settings .imgedit-help-toggle:focus {
    1199         color: #2271b1;
    1200         border-color: #2271b1;
    1201         box-shadow: 0 0 0 1px #2271b1;
     1199        color: var(--wp-admin-theme-color);
     1200        border-color: var(--wp-admin-theme-color);
     1201        box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
    12021202        /* Only visible in Windows High Contrast mode */
    12031203        outline: 2px solid transparent;
Note: See TracChangeset for help on using the changeset viewer.