Skip to content

Should "Border & Shadow" panel label include "border" if border is not supported? #58907

@carolinan

Description

@carolinan

Description

Not all themes support borders, so it can be confusing when a panel labeled Border and Shadow has no border controls.
I'm not sure if this is a bug, it felt unexpected to me, but I understand that consistency on the panel labels is also important.

Step-by-step reproduction instructions

On WordPress 6.5 alpha:
Activate a classic theme like Twenty Sixteen
In the block editor, add an image block.
Open the block settings panel, locate the "Border and Shadow" panel.
Now add a button:
Open the block settings panel, locate the "Border and Shadow" panel.

Compare the two experiences.

Screenshots, screen recording, code snippet

Border and shadow panel without border controls

Environment info

WordPress 6.5-alpha-57580

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

Labels

Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] ThemesQuestions or issues with incorporating or styling blocks in a theme.[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions