-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Default color presets rendering in the Cover block when defaultPalette is false #58753
Comments
I checked and can confirm as well. It looks like Gutenberg is adding its own defaults. And there's a comment saying that's for backward compatibility purposes. |
These shouldn't be available in the UI if they're disabled from theme.json |
I got pulled away before I could do a deep dive here. I did do a bit of a Gutenberg GitHub search for |
I'm not entirely sure what triggered this regression but could this something you could help debug? @andrewserong @aaroncampbell @ramonjd |
Sure, happy to help dig in! 👀 |
From a I think that seems to work okay, but it does mean the fix is particular to that component. Feel free to close out that PR if anyone comes up with a better approach! |
@andrewserong That particular PR #55219 seem to be a somewhat big low level change and I don't believe the reasoning there was discussed properly. Any thoughts on it, what does it mean for all the properties. Should we consider a revert to it? cc @oandregal @matiasbenedetto I'd love more thoughts on that particular PR. |
I believe I saw a similar issue raised about the defaultFontSizes as well. |
@youknowriad I don't think so. I added my the rationale behind my point of view in this comment from #55219. Maybe we can continue the discussion over there. |
Update: for anyone following along with this issue, there is discussion over in #55219 (comment) about the idea of reverting #55219 (the PR that introduced merging settings origins, which affected the color palette in this issue). @ajlende has a proposal in #58951 to look at reverting. If the PR is reverted, then I don't think we'll need a separate fix for this issue. If the PR is not reverted, then #58869 will be a candidate for a fix for 6.5. |
Description
Setting
settings.color.defaultPalette
in theme.json should remove the default color palette presets from the Cover block placeholder (as it does in WordPress 6.4.X).With Gutenberg active, the default color presets are unexpectedly rendered as choices within the placeholder.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
In the screenshot below I am showing how the default color presets are disabled for Twenty Twenty Four, as only the theme's color presets are rendering in the Color settings. But the placeholder is not respecting the theme.json, rendering the core presets alongside the theme's:
Environment info
Does not occur with WordPress 6.4.x, but it does when Gutenberg is active.
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: