-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix alignments for children of Query block. #44144
Conversation
Size Change: +22 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, thanks for finding a fix for this @tellthemachines. Glad it was a simple change copying over the logic from the Group block! I wonder if longer term it's worth us creating a common layout utility function that wraps this logic for easy use (not a blocker for this PR, of course).
This is testing well for me; with this PR applied I can now see the additional alignment controls at the Post Template level and the classnames are output in the site editor:
LGTM! Also, once this PR is merged, should we cherry pick it into the release/14.1
branch so it makes it into this GB release?
Thanks for reviewing @andrewserong !
Ideally we can find a way to make this block support work without having to explicitly pass layout to the inner blocks, which would incidentally fix #43731 😄 If/when we do that, perhaps we can remove this logic altogether 🤞
Yes! |
@tellthemachines @andrewserong I'm constantly following the progress you're making here, still hoping that we'll get |
I just cherry-picked this PR to the wp/6.1 branch to get it included in the next release: f70250a |
What?
Children of the Query block weren't being passed all the data on their parent's layout, so they weren't getting the full set of alignment controls when Query had "Inner blocks use content width" set.
Fixes an issue reported on TT3.
Why?
How?
Testing Instructions
Screenshots or screencast