-
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
Try: Fix cover flex issue in the editor. #43413
Conversation
It would be good to test the cover alignment options as well. |
Size Change: -25 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
@@ -47,10 +47,6 @@ | |||
margin: 0; | |||
} | |||
|
|||
.block-editor-block-list__layout { |
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.
Removing editor specific code is great, let's make sure nothing is regressing though
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.
Thanks for fixing this! I tested with several different configurations of nested blocks inside Cover and nothing unexpected is happening. For all Cover block inner wrapper purposes, the width property is duplicated here, so removing this line only changes places where it's affecting other blocks nested inside Cover.
What?
Fixes #34909, props @alaczek for the code in #34909 (comment).
Flex containers inside a cover behaved strangely, only in the editor:
This PR removes the problematic code, which was introduced in #13822, fixing it:
It is unclear what the purpose of the previous code was, but it would be good to test with a variety of cover-specific patterns and content inside, to verify that nothing breaks as a result of this removal.
Testing Instructions
Sample code to test:
Instagram link should look good.