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

WordPress Trac noreply at wordpress.org
Thu Mar 5 11:47:56 UTC 2026


#64811: Zero comment notification in admin toolbar has insufficient color contrast
-------------------------------------------------+-------------------------
 Reporter:  louischan                            |      Owner:  (none)
     Type:  enhancement                          |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Toolbar                              |    Version:  6.9.1
 Severity:  normal                               |   Keywords:
  Focuses:  ui, accessibility, css,              |
  administration                                 |
-------------------------------------------------+-------------------------
 Hi,
 When no comment is to be validated in the WordPress dashboard, the figure
 "0" appears next to the comment icon.

 This number has an opacity of .5 applied because of the class .count-0.

 The result is an insufficient color contrast to reach WCAG AA standard.

 This was tested with the Modern WordPress User theme (but insufficient
 contrast was also noticed with other themes, like Fresh, Light, and so
 on).

 Different solutions:
 - remove the .count-0 class, so that the color isn't altered when no
 comments have to be reviewed.
 - increase the opacity to .7 which is enough to get a color contrast of
 over 4.5, while still keeping a slight visual difference.

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


More information about the wp-trac mailing list