-
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
Block: move align wrapper out of Block element #23089
Conversation
This wrapper should ideally be added with a hook on |
Size Change: -3 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Hi @ellatrix I recently submitted an issue about editor styling and after some digging I found that it relates to this PR. I wondered if I could get some context on why the alignment data were placed in a wrapper rather than on the block element itself? Is the original reason for this PR still valid, or is there a possibility of reversing this to make styling the editor and front-end more consistent? Thanks! |
The alignment data was already placed on a wrapper before this PR. This PR just moved the code. See The alignment wrapper remains needed I believe for left and right alignment, otherwise it breaks out of the main column. Not sure if we can use the new layout/alignment API here in the future. Cc @youknowriad @jasmussen. |
I would love any way we could revisit that separate wrapper and move closer to the frontend markup on this one. Can we do it for block themes? Already now in block themes, floats break out of the main column. |
the alignment wrapper is not needed for themes with layout support but it's probably still there to support older themes. |
Description
This PR moves the alignment wrapper out of the Block element. It doesn't really belong in this component, which is meant to render a single element.
How has this been tested?
Screenshots
Types of changes
Checklist: