Skip to content

Allow disabling the shadow panel #48753

@carolinan

Description

@carolinan

Description

There is no way to turn off the Shadow panel in Site Editor > Styles > Blocks > Button
If theme.json turns off all presets, the panel still shows, but it has no options.

Step-by-step reproduction instructions

Add the following under settings in theme.json:

	"shadow": {
		"presets": [],
		"defaultPresets": false
	},

Screenshots, screen recording, code snippet

The panel shows but there are no options:
Shadow panel and modal in the Styles Sidebar

Environment info

No response

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[Block] ButtonsAffects the Buttons Block[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