[wp-trac] [WordPress Trac] #46698: Twenty Nineteen: use better color names for the editor palette

WordPress Trac noreply at wordpress.org
Mon Apr 15 15:56:34 UTC 2019


#46698: Twenty Nineteen: use better color names for the editor palette
-----------------------------------------+--------------------------------
 Reporter:  afercia                      |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  5.3
Component:  Bundled Theme                |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-screenshots needs-patch  |     Focuses:  ui, accessibility
-----------------------------------------+--------------------------------

Comment (by afercia):

 > Is this is referring to the color selector in the Customizer? I

 No :) I meant Gutenberg already fallbacks to the `hex` value when the
 color has no name:
 https://github.com/WordPress/gutenberg/blob/3d6fe8e3d9816b0017b9e1d69ced4103f67e7059/packages/components/src
 /color-palette/index.js#L35-L52

 So when a custom hue is set via the Customizer, it wouldn't be possible to
 get a name for the Primary and Secondary colors in Gutenberg. Would it be
 possible to fallback to the `hex` value in this case?

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


More information about the wp-trac mailing list