Skip to content

block.json: supports > layout > allowJustification set to false doesn't hide the Justification settings UI #53871

@danieldudzic

Description

@danieldudzic

Description

In block.json setting the allowJustification to false in the following way:

{
	"supports": {
		"layout": {
			"default": {
				"type": "flex"
			},
			"allowVerticalAlignment": true,
			"allowJustification": false,
			"allowOrientation": false,
			"allowInheriting": false
		}
	}
}

Doesn't result in a hidden Justification settings UI:
Cursor_i_Single_Product_‹_Template_‹_Editor_‹_productgallery_—_WordPress

Step-by-step reproduction instructions

Add layout support to any block in the following way:

{
	"supports": {
		"layout": {
			"default": {
				"type": "flex"
			},
			"allowVerticalAlignment": true,
			"allowJustification": false,
			"allowOrientation": false,
			"allowInheriting": false
		}
	}
}

Note the Justification settings UI is present in the Block settings sidebar.

Screenshots, screen recording, code snippet

No response

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

    [Feature] BlocksOverall functionality of blocks[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[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