[wp-trac] [WordPress Trac] #64811: Zero comment notification in admin toolbar has insufficient color contrast

WordPress Trac noreply at wordpress.org
Fri Mar 6 17:47:11 UTC 2026


#64811: Zero comment notification in admin toolbar has insufficient color contrast
-------------------------+-------------------------------------------------
 Reporter:  louischan    |       Owner:  joedolson
     Type:  defect       |      Status:  accepted
  (bug)                  |
 Priority:  normal       |   Milestone:  7.0
Component:  Toolbar      |     Version:  6.9.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui, accessibility, css,
  commit                 |  administration
-------------------------+-------------------------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch => has-patch commit


Comment:

 The WCAG Color contrast checker Chrome extension's foreground color
 calculations seem inaccurate for this element; Firefox tells me the ratios
 are 5.12:1 in Modern and 4.54:1 in Fresh.

 However, in the `:focus` and `:hover` states, half-opacity is almost
 guaranteed to have insufficient contrast. The styles theoretically could
 change opacity on those states, but I like the simplicity of PR 11186.

 The `count-0` class remains on the element, so anyone who chooses can
 still change the opacity or hide the zero (or use `:not(.count-0)` to call
 attention to non-zero numbers).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64811#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list