Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layout block supports #1295

Closed
wants to merge 2 commits into from
Closed

Add layout block supports #1295

wants to merge 2 commits into from

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