-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Global Styles - Custom Colors given the same name cannot be applied properly #49593
Copy link
Copy link
Closed
Closed
Copy link
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
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.
Step-by-step reproduction instructions
- Start in site editor
- Select global styles
- Colors>Palettes>Custom Colors, add custom colors
- Select "Show Details" in the menu for custom colors, and rename all the colors to the same name, such as "Color 1"
- Return to the editor, and try selecting one of these custom color for any block color setting
Screenshots, screen recording, code snippet
Setup
Result
Environment info
Originally reported here: Automattic/wp-calypso#75197
Replicated in WP version 6.2 with all Gutenberg plugin active and deactivated.
Theme: Twenty Twenty-Three
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.

