-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme color palette not showing colors with conflicting slug in default color palette #37449
Comments
Yes, this will be resolved in 5.9 if |
This is still an issue in 5.9, whether or not |
Conflicting colors are not displayed on the color palette, but the CSS variables generated on the frontend are using the theme's color palette values when |
Works as expected after updating the Gutenberg plugin version. Closing the issue. |
Confirmed in 5.9 without the plugin active and in a clean install. With |
Description
Two different color palettes are shown on the editor, one with the default color palette of core and another with the theme's color palette set via theme.json.
The problem occurs when the theme color palette includes the same color slugs as the default color palette options. In this case, the theme color palette should take precedence over the default color palette of the same slug. The same thing applies to CSS color variables, the default color variable overrides the theme's color variable.
Colors with conflicting slugs do not appear on the color palette even with the
defaultPalette
setting being disabled.Current behavior
Expected behavior
Step-by-step reproduction instructions
White and Black color has the conflicting slug from the default color palette.
black
andwhite
color options are available under the theme color palette.Screenshots, screen recording, code snippet
No response
Environment info
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
The text was updated successfully, but these errors were encountered: