[wp-trac] [WordPress Trac] #52750: WP 5.7 colors inconsistent in get_option( 'admin_color' ) since color contrast changes

WordPress Trac noreply at wordpress.org
Mon Mar 15 19:24:45 UTC 2021


#52750: WP 5.7 colors inconsistent in get_option( 'admin_color' ) since color
contrast changes
--------------------------------+------------------------
 Reporter:  ninetyninew         |       Owner:  audrasjb
     Type:  defect (bug)        |      Status:  reviewing
 Priority:  normal              |   Milestone:  5.7.1
Component:  Options, Meta APIs  |     Version:  5.7
 Severity:  normal              |  Resolution:
 Keywords:  2nd-opinion         |     Focuses:
--------------------------------+------------------------

Comment (by ryelle):

 That's correct, `#3582c4` is the new value from the new color palette, but
 primary buttons are `#2271b1`. These colors aren't intended to be a 1:1
 match to the colors used in the CSS (there are more colors in the CSS than
 just 4, for one thing). The "right" way to pull in color scheme styles is
 to use [https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/css/common.css#L701 the helper classes], `wp-ui-highlight` or `wp-
 ui-highlight-text`.

 But I wonder if there are a lot of plugins that use the PHP values this
 way 🤔 Should we update that value to match the button color?

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


More information about the wp-trac mailing list