Skip to content

Conversation

@oandregal
Copy link
Member

@oandregal oandregal commented May 25, 2021

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
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