Skip to content

7.1 Group Elements Block Settings does not respect theme.json restrictions for background color (Beta 1) #80491

Description

@andreawetzel

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.

  1. Is it a bug that the Elements panel doesn't use the theme.json settings for background: false?

  2. What is the intended use for the Elements panel?

  3. 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

Image

Environment info

  • WordPress 7.1 Beta 1
  • Custom Hybrid theme

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions