Skip to content

Pullquote block overrides global theme.json settings for borders #56628

Open

Description

Description

If I want to disable all border settings using theme.json, according to the documentation, I should use:


{
	"version": 2,
	"settings": {
		"border": {
			"color": false,
			"radius": false,
			"style": false,
			"width": false
		}
	}
}

This correctly disables the border settings for some blocks, like the group.
But it does not disable any border settings for the pullquote block.

If I instead use :

{
	"version": 2,
	"settings": {
		"border": {
			"color": false,
			"radius": false,
			"style": false,
			"width": false
		},
		"blocks": {
			"core/pullquote": {
				"border": {
					"color": false,
					"radius": false,
					"style": false,
					"width": false
				}
			}
		}
	}
}

Then the border setting is hidden also for the pullquote block.

Step-by-step reproduction instructions

Open the theme.json of any block theme, delete everything in the file, and copy paste the first example from the issue.
Activate the theme.
Open the block editor or site editor and add a pullquote block.
Confirm that the block still has border options.
Repeat the steps with the second code example, and confirm that the block no longer has a border options.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.4.1. Gutenberg is not active.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Block] PullquoteAffects the Pullquote 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