Skip to content

Color Panel appears on group block even if disabled in theme.json #41293

@johnstonphilip

Description

@johnstonphilip

Description

If I disable everything relating to colors in theme.json, the panel still shows up on blocks that support it, such the group block.

Step-by-step reproduction instructions

  1. In a block theme, set theme.json like this:
{
    "version": 2,
    "settings": {
        "color": {
            "custom": false,
            "customDuotone": false,
            "customGradient": false,
            "defaultGradients": false,
            "defaultPalette": false,
            "background": false,
            "defaultDuotone": false,
            "text": false
        }
    }
}
  1. In the block editor, ad a group block. Notice you'll still see a Color panel in the sidebar, even though you can't do anything with it. Interestingly it shows a "background" option that opens a popover with nothing inside it.

Screen Shot 2022-05-24 at 9 11 15 PM

Screenshots, screen recording, code snippet

No response

Environment info

  • Gutenberg 13.3.0-rc.1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] ColorsColor management[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions