[wp-trac] [WordPress Trac] #58090: Global Styles custom colors with the same name

WordPress Trac noreply at wordpress.org
Tue Apr 4 21:12:07 UTC 2023


#58090: Global Styles custom colors with the same name
--------------------------+-----------------------------
 Reporter:  plari         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  6.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If custom colors are added in the global styles theme settings with the
 same name (eg Color 1), it becomes impossible to select any color but the
 last custom color of that name.

 Steps to reproduce

 1. Start in site editor
 2. Select global styles
 3. Colors>Palettes>Custom Colors, add custom colors
 4. Select "Show Details" in the menu for custom colors, and rename all the
 colors to the same name, such as "Color 1"
 5. Return to the editor, and try selecting one of these custom color for
 any block color setting

 **Result**

 Of the Custom colors have the same name, the editor interface displays the
 last color of that name, while the color picker itself shows the first
 color of that name, even if something between those two is selected.

 [[Image(https://user-
 images.githubusercontent.com/27249804/229915405-2084f947-9bcc-4153-8dd9-3c0becc76504.png)]]

 **Possible Solution**
 Preventing Custom Colors from being given the same name would help
 alleviate this issue.

 Originally reported here: https://github.com/Automattic/wp-
 calypso/issues/75197
 Replicated in WP version 6.2 with all plugins deactivated.
 Theme: Twenty Twenty-Three

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


More information about the wp-trac mailing list