-
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
Innerblocks blocks should not be styled by parent alignment #12563
Comments
I just found out about the bug and was going to open an issue. Are there any news on this? |
Steps to Reproduce:
Implementation Notes: These styles are here: gutenberg/packages/block-editor/src/components/block-list/style.scss Lines 358 to 398 in 48e06de
Notably, there is a descendent selector for right-align. It's possible this was simply overlooked in #10085 to apply also to the left-aligned (cc @jasmussen )? |
Yes, that appears to be the case. I have some things on my table and can't push a fix today, but I can take a look in a few days or next week, probably? |
I think this is fixed now. |
The parent container of an
Innerblocks
block should be able to be aligned without that alignment affecting the child blocks withinInnerblocks
.As an example, let's say you add a block,
container
, which has anInnerblocks
area. You should be able to align the container left, to float it as a pseudo-sidebar, say, without all of the children ofInnerblocks
in the editor also being floated left.This does not affect the front end output, but is a big hassle in the editor itself.
This is because the rules which use
[data-align=""]
are not limited in scope using the>
selector, so all children continue to inherit the rules, including special paddings and margins set on various bits of the editor interface.The text was updated successfully, but these errors were encountered: