-
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
Block Editor Color Palette: Only custom color palettes are displayed #64857
Comments
Same here. If you create a custom colour in the styles, then in a text block, the highlight option will only offer this colour without the basic palette. |
I've confirmed that this issue has been occurring since at least WP 6.0. |
Hii @t-hamano , Here it is mentioned that we are getting the custom colors from this code:
But when I was checking this in my local I modified this code to set the value of $editor_settings['colors'] as $colors_by_origin['theme'] for testing but still I was getting the custom colors only 🤔 . |
This is a very problematic bug, since providing custom colors in the color palette is a central function in the adaption of (FSE-) Themes. But the described bug is still unresolved in WordPress 6.7. Beta 1 For me, personally, this bug makes the whole FSE color palette system unusable. So I have to use plugins or CSS to replace a so called FSE WordPress core function ins styles. Am I really the only one who has a problem with this? Is WP 6.7 really planed to ship with this bug unresolved? |
@AKSHAT2802 I left a review on #65148. Would appreciate a follow-up to get this through; it's close. :) |
Description
If the custom color palette is defined in the global styles, the color palette in the block editor package only shows that custom color palette.
Note that I'm talking about the
ColorPalette
component in the block editor package, not theColorPalette
component in the components package.This issue can be seen in color inline formatting and Cover block placeholder. From what I've tested in Playground, this problem appears to have been occurring since at least WP6.3. As I recall, all palettes - theme, default, and custom - were displayed in the past.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Cover block and text color format. Only custom colors are shown:
If no custom color is defined, the theme color is displayed:
Like color block support, it should display all three colors
default
,theme
, andcustom
:Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: