Make WordPress Core

Changeset 62145


Ignore:
Timestamp:
03/26/2026 04:07:13 PM (6 months ago)
Author:
audrasjb
Message:

Admin: Use admin color scheme variable for bar, highlight, and contextual help styles.

This changeset ensures the styles for bar, highlight and contextual help always take into account the admin color scheme settings.

Reviewed by joedolson.
Props fabiankaegy, audrasjb, ozgursar, noruzzaman, shailu25, sandipsinh007, tusharaddweb, hbhalodia, amesplant, joedolson.
Fixes #64744.
See #64308.

File:
1 edited

Legend:

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

    r61941 r62145  
    710710.bar {
    711711        background-color: #f0f0f1;
    712         border-right-color: #4f94d4;
     712        border-right-color: var(--wp-admin-theme-color);
    713713}
    714714
     
    716716
    717717.highlight {
    718         background-color: #f0f6fc;
     718        background-color: rgba(var(--wp-admin-theme-color--rgb), 0.08);
    719719        color: #3c434a;
    720720}
     
    20302030        border-top: none;
    20312031        border-bottom: none;
    2032         background: #f0f6fc;
     2032        background: rgba(var(--wp-admin-theme-color--rgb), 0.08);
    20332033}
    20342034
     
    20742074        padding: 0;
    20752075        margin: 0 -1px 0 0;
    2076         border-left: 2px solid #72aee6;
    2077         background: #f0f6fc;
     2076        border-left: 2px solid var(--wp-admin-theme-color);
     2077        background: color-mix(in srgb, var(--wp-admin-theme-color) 8%, white);
    20782078        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 1px 0 rgba(0, 0, 0, 0.02);
     2079}
     2080
     2081.contextual-help-tabs .active::after {
     2082        content: "";
     2083        position: absolute;
     2084        top: 0;
     2085        right: -1px;
     2086        width: 2px;
     2087        height: 100%;
     2088        background: inherit;
     2089        z-index: 2;
    20792090}
    20802091
Note: See TracChangeset for help on using the changeset viewer.