Skip to content

Add layout block supports#1295

Closed
oandregal wants to merge 2 commits into
WordPress:masterfrom
oandregal:update/layout-support
Closed

Add layout block supports#1295
oandregal wants to merge 2 commits into
WordPress:masterfrom
oandregal:update/layout-support

Conversation

@oandregal

@oandregal oandregal commented May 25, 2021

Copy link
Copy Markdown
Member

Part of https://core.trac.wordpress.org/ticket/53175
Related to WordPress/gutenberg#31322

This PR adds support for the layout hook. Blocks can declare via supports.__experimentalLayout and themes can use the theme.json to provide the values for contentSize and wideSize.

How to test

  • Add a theme with theme.json support.
  • Go to the post editor, add a group block.
  • Verify that there's a wp-container-ID class attached to the content and that the group block has the same class attached.

@youknowriad

Copy link
Copy Markdown
Contributor

committed

@oandregal oandregal deleted the update/layout-support branch May 25, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants