Skip to content

Documentation: spacing.blockGap explanation is inadequate for custom blocks #43921

@dsas

Description

@dsas

Description

Part of #41236.

spacing.blockGap is mentioned in the supports section of the block API reference.

It says that setting the property to true is enough to enable the functionality if the theme supports it. This wasn't the case for me. Looking at the blocks which currently support blockGap, they either use layouts or use some gap specific hooks.

It would be great to have better documentation on how I can use blockGap in custom container blocks of my own.

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

Good First IssueAn issue that's suitable for someone looking to contribute for the first timeNeeds DevReady for, and needs developer efforts[Feature] Block APIAPI that allows to express the block paradigm.[Feature] LayoutLayout block support, its UI controls, and style output.[Type] Developer DocumentationDocumentation for developers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions