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

Don't add root padding to children of flex and grid layout blocks. #5148

Conversation

tellthemachines
Copy link
Contributor

@tellthemachines tellthemachines commented Sep 6, 2023

Trac ticket: https://core.trac.wordpress.org/ticket/59295

Syncs the changes to class-wp-theme-json from WordPress/gutenberg#53259, as well as a test string update.

This one can be tested in the front end by following the steps detailed in WordPress/gutenberg#53259.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

Copy link
Contributor

@andrewserong andrewserong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me on the site frontend!

Before

On trunk, the children of full width flex layouts (Row block) receive the root left/right padding:

image

After

With this PR, they do not:

image

The children of Group block in both cases still continue to receive the root padding left/right rules as expected.

LGTM! ✨

@ramonjd
Copy link
Member

ramonjd commented Sep 8, 2023

Also tests well for me. Thank you!

@tellthemachines
Copy link
Contributor Author

Committed in r56546.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants