[wp-trac] [WordPress Trac] #64013: Color contrast below WCAG standards for newly-added items in customizer menus

WordPress Trac noreply at wordpress.org
Fri Sep 19 23:56:00 UTC 2025


#64013: Color contrast below WCAG standards for newly-added items in customizer
menus
--------------------------------+----------------------------------------
 Reporter:  joedolson           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Customize           |    Version:  4.3
 Severity:  normal              |   Keywords:  needs-patch good-first-bug
  Focuses:  accessibility, css  |
--------------------------------+----------------------------------------
 After adding an item to a menu in the customizer, the item changes to a
 medium gray with a checkmark to indicate it's been added.

 The color is `#8c8f94` on white, which is a color contrast of 3.24:1. This
 is acceptable for a disabled control or for an icon, but not for the text.

 These controls are not disabled after adding; but are only dimmed.

 There are a couple possible solutions here, depending on whether there's a
 use case for letting users add the same item twice in the same session.

 If users *should* be able to add the same item twice in a row, then the
 contrast should be increased.

 If we can't identify a use case for adding the same item twice in a row,
 then it may make more sense to disable it, instead.

 I'll note that disabling the control wouldn't prevent users from adding
 the same item to a menu twice; it would just make it more difficult.

 The primary case I can think of for adding an item multiple times is in
 complex menus where there may be multiple user paths to reach a particular
 service/resource/etc. In this case, making that item disabled would be
 inconvenient.

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


More information about the wp-trac mailing list