[wp-trac] [WordPress Trac] #60140: Copy buttons: Insufficient color contrast ratio for the 'Copied!' text

WordPress Trac noreply at wordpress.org
Fri Dec 29 20:02:01 UTC 2023


#60140: Copy buttons: Insufficient color contrast ratio for the 'Copied!' text
-----------------------------------------+------------------------------
 Reporter:  afercia                      |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  reopened
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Administration               |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch has-screenshots  |     Focuses:  accessibility
-----------------------------------------+------------------------------
Changes (by sabernhardt):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 The text needs to have a minimum contrast of 4.5:1 against the background,
 whether the text is green or gray.

 The palette's next darkest green (`#007017`
 [https://codepen.io/ryelle/full/WNGVEjw Green 60]) would have a 5.54:1
 [https://www.joedolson.com/tools/color-
 contrast.php?type=hex&color=%23007017&color2=%23f0f0f1&alpha=1 contrast
 ratio] against `#f0f0f1`.

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


More information about the wp-trac mailing list