Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#65974 closed defect (bug) (duplicate)

Toolbar: transparent site icons should not have white background

Reported by: fushar Owned by:
Priority: normal Milestone:
Component: Toolbar Version: 7.1
Severity: normal Keywords: has-patch
Cc: Focuses: css, administration

Description

Since WP 7.1 we started showing site icons in the admin bar, a feature that I implemented.

It was me who added the background color so that the site icons are consistently square (vs user avatar which is consistently circle). But now that the feature is live and I've seen some client sites, I think it's a mistake. In some brands, the shape of a transparent site icon gets weird with the added white rounded square.

It seems at least a user also feels the same way in this comment: https://core.trac.wordpress.org/ticket/65912#comment:16

See the attached PR for more details about the suggested changes.

Change History (4)

This ticket was mentioned in ​PR #13289 on ​WordPress/wordpress-develop by ​@fushar.


3 months ago
#1

Trac ticket: https://core.trac.wordpress.org/ticket/65974

This PR removes white background from transparent site icons. This is done so that site icons maintain their original shape.

I actually implemented the initial background color so that the site icons are consistently square, but now that the feature is live and I've seen some client sites, I think it's a mistake. In some brands, the shape of a transparent site icon gets weird with the added white rounded square.

With this change, these 4 places are now consistent:

  • toolbar
  • browser tabs (at least Chrome and Firefox show transparent favicons as-is)
  • Settings -> General site icon preview
  • Site Editor -> Identity -> Site Icon form input

---

### Solid site icon (no change)

Toolbar

https://github.com/user-attachments/assets/13ca45d4-3a0a-48dc-af60-3147230d9cce

Settings -> General

https://github.com/user-attachments/assets/1ca2f485-8ce8-4d87-8ddd-ee8fe9181bf9

Site Editor -> Identity

https://github.com/user-attachments/assets/e9267d22-fea0-490f-a5cd-302f873a5196

Actual browser Chrome tab

https://github.com/user-attachments/assets/e683f558-0d0e-4b0a-ad71-0b198fe189c1

---

### Transparent site icon

Toolbar - BEFORE vs AFTER

https://github.com/user-attachments/assets/60d95647-b125-42d2-a86e-cc3db5634579
<br>
https://github.com/user-attachments/assets/e9b4f59b-6dd0-4d2e-93a8-264a55586294

Settings -> General - BEFORE vs AFTER

https://github.com/user-attachments/assets/5b540c80-daca-4bc5-a2c1-d694769910a6
<br>
https://github.com/user-attachments/assets/570651df-0f7c-4e43-9d4a-c0f46a09c4dc

Site Editor -> Identity

https://github.com/user-attachments/assets/054d1c89-102d-4ef4-9b39-b6e2d0a0a7d9

Actual browser (Chrome) tab

https://github.com/user-attachments/assets/1c345b10-4053-4500-8fea-a214fcf56fa6

## Use of AI Tools

Used Claude Code, Opus 5 to help generate the CSS changes.

#2 @wildworks
3 months ago

Is this a duplicate of #65924?

#3 @fushar
3 months ago

Oh my god yes... I see you tagged me in that ticket but I didn't get any emails so I didn't get notified. It's strange.

My PR has more changes to also "fix" the Settings -> General site icon preview, though.

Let's close this ticket and use that one instead! (I don't think I can close this as duplicated, can you help?)

#4 @wildworks
3 months ago

  • Milestone 7.1.1
  • Resolution → duplicate
  • Status new → closed

Duplicate of #65924.

Note: See TracTickets for help on using tickets.