-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Block Editor - Post Template]: Fix layout styles #47221
Conversation
Size Change: +16 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in cb2bee4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3941658924
|
This is looking great @ntsekouras. |
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.
LGTM! I have confirmed that it is correctly placed in the editor and matches the front-end classname 👍
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 fixing this up @ntsekouras! Confirmed the issue on trunk
and that this PR fixes the issue in the editor 👍
Also, kudos @tellthemachines for adding in __unstableDisableLayoutClassNames
, looks like it helped make the change in this PR a simple fix 🙂
What?
Fixes: #47129
Layout classes(
is-layout-flow
) should be applied only to the wrapper element(ul
) and not on the selected inner blocks wrapper throughuseInnerBlocksProps
. This is already [handled server side].(#41827)Related: #44600
Testing Instructions
post
and the others is the same and remains the same when we select another's post inner block.ul
)Before
After
Screen.Recording.2023-01-17.at.7.04.52.PM.mov