Description
Our theme removes the ability to change background colors via theme.json for buttons and headings.
"blocks": {
"core/button": {
"color": {
"background": false
},
However, testing in 7.1 Beta 1, these background colors can be changed if a group block is selected. This can result in unsupported designs for our theme.
-
Is it a bug that the Elements panel doesn't use the theme.json settings for background: false?
-
What is the intended use for the Elements panel?
-
Can the Elements panel be disabled? (yes, see comment below)
Step-by-step reproduction instructions
- Restrict backgrounds from being changed via theme.json
- Add a group block to a page
- Add heading and button elements within that group block
- Go to the group block's block settings panel and find the "Elements" panel
- Change the background color for headings and buttons
Screenshots, screen recording, code snippet
Here is a screenshot from testing 7.1 Beta 1 with our theme that has background color removed via theme.json
Environment info
- WordPress 7.1 Beta 1
- Custom Hybrid theme
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
Our theme removes the ability to change background colors via theme.json for buttons and headings.
However, testing in 7.1 Beta 1, these background colors can be changed if a group block is selected. This can result in unsupported designs for our theme.
Is it a bug that the Elements panel doesn't use the theme.json settings for background: false?
What is the intended use for the Elements panel?
Can the Elements panel be disabled? (yes, see comment below)
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Here is a screenshot from testing 7.1 Beta 1 with our theme that has background color removed via theme.json
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.