Make WordPress Core

Changeset 63552


Ignore:
Timestamp:
09/09/2026 09:49:57 AM (9 days ago)
Author:
tyxla
Message:

Toolbar: Remove the light background behind the Admin Bar site icon.

The site icon in the admin bar was given a #f0f0f1 background to match the
my-account (user avatar) node. Unlike avatars, which are always opaque, site
icons are frequently transparent PNGs with a non-square shape, and the light
square showed through them against the dark admin bar, breaking the icon's
intended silhouette.

Removing the background lets transparent icons blend into the toolbar. Opaque
icons are unaffected, and icons that lack contrast against the admin bar are
considered the site owner's responsibility, consistent with how a favicon must
already work against varying browser chrome.

Developed in https://github.com/WordPress/wordpress-develop/pull/13229

Props w3bdsgn, afercia, jorbin, audrasjb, r1k0, wildworks, sabernhardt,
darshitrajyaguru97, fushar, ugyensupport, nkpathan, joen, adrianduffell,
adamsilverstein, tyxla.

Fixes #65924.

File:
1 edited

Legend:

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

    r63504 r63552  
    594594        width: 20px;
    595595        height: 20px;
    596         background: #f0f0f1; /* matching my-account (user avatar) node's background */
    597596        border-radius: 2px;
    598597}
Note: See TracChangeset for help on using the changeset viewer.