You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Border allows custom color picker even when custom color is set to false in theme.json #59567
In theme.json having a custom color setting as false still allows the color picker for border color. The goal is to allow theme users to be able to choose from the color palette for border colors, but not have access to the color picker to choose any of the custom Hex, RGB, HSL color options
Step-by-step reproduction instructions
In theme.json, set custom color setting to false and note that the custom color option is still available in core/group block under styles > border.
"settings": {
"color": {
"custom": false,
Note that I can set border color to false in theme.json settings overall or for each block, but this also removes the ability to choose from my theme's color palette as well as removing the custom color picker.
Thank you for opening this! Added a few more labels.
Tested in WP 6.4.3 and 6.5-beta3 (no Gutenberg plugin)
Because this is present in both 6.4.3 and 6.5 beta 3, I'm afraid this isn't a bug isolated to just the beta period of 6.5. We enter RC1 tomorrow where we focus on fixing bugs found during the beta period/related to the beta period. As a result, I'm not going to add this to the 6.5 board.
The problem is with the redux store "core/block-editor"
In the post editor is it not loaded and in the site editor it is loaded but without state.
For site editor - we need to import register from @wordpress/data to packages/block-editor/src/store/index.js
and add in line 38:
Activity
annezazu commentedon Mar 5, 2024
Thank you for opening this! Added a few more labels.
Because this is present in both 6.4.3 and 6.5 beta 3, I'm afraid this isn't a bug isolated to just the beta period of 6.5. We enter RC1 tomorrow where we focus on fixing bugs found during the beta period/related to the beta period. As a result, I'm not going to add this to the 6.5 board.
cbravobernal commentedon Mar 18, 2024
If you don't mind, I'd like to work on this feature for the March 24th Contributor table at WordCamp Torrelodones 2024.
vraja-pro commentedon Mar 24, 2024
The problem is with the redux store "core/block-editor"
In the post editor is it not loaded and in the site editor it is loaded but without state.
For site editor - we need to import
registerfrom@wordpress/datato packages/block-editor/src/store/index.jsand add in line 38:
vraja-pro commentedon Apr 18, 2024
Back on this issue in Yoast contributor day, the
registeris done in a different file, so that was not the issue.Groupblock.initialStatewhen registering a store.disableCustomColorsis not true to the store value inpackages/components/src/color-palette/index.tsxsnibe commentedon Aug 12, 2025
is there any update on this? we are having this issue on the latest version 6.8.2 Thanks!
n8finch commentedon Sep 8, 2025
I'll be looking into this issue this week. 🙂