Make WordPress Core

Changeset 61737


Ignore:
Timestamp:
02/25/2026 07:28:54 PM (8 months ago)
Author:
joedolson
Message:

Admin: Set info notices to use white background.

The admin reskin changed info notices to a transparent background, matching usage in Gutenberg. But with the gray background in the core admin, these notices didn't show up in an expected manner. Additionally, using a transparent background in a context where the background color is variable is risky for color contrast.

Change .notice-info, .notice-info.notice-alt, and .login .notice, .login .message to use white backgrounds. Reverts changes from [61731] to apply styles also to .message class.

Props mohitbsf, audrasjb, peterwilsoncc, pbiron, fabiankaegy, noruzzaman, joedolson.
Fixes #64678. See #64715.

Location:
trunk/src/wp-admin/css
Files:
2 edited

Legend:

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

    r61682 r61737  
    15761576.notice-info {
    15771577        border-left-color: #3858e9;
    1578         background-color: transparent;
     1578        background-color: #fff;
    15791579}
    15801580
    15811581.notice-info.notice-alt {
    1582         background-color: transparent;
     1582        background-color: #fff;
    15831583}
    15841584
  • trunk/src/wp-admin/css/login.css

    r61731 r61737  
    5050        margin-left: 0;
    5151        margin-bottom: 20px;
    52         background-color: transparent;
     52        background-color: #fff;
    5353        word-wrap: break-word;
    5454}
    … …  
    6565        border-left-color: #4ab866;
    6666        background-color: #eff9f1;
    67 }
    68 
    69 .login .notice {
    70         background-color: #fff;
    7167}
    7268
Note: See TracChangeset for help on using the changeset viewer.