Row block: Layout does not work when classic theme and editor is iframed #60078
Labels
[Block] Group
Affects the Group Block (and row, stack and grid variants)
[Feature] Layout
Layout block support, its UI controls, and style output.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Row block justification does not work when the following two conditions are met.
Iframed (custom fields panel is not enabled)
The left and right auto margins (from
.editor-styles-wrapper .wp-block
) override the zero margin of child blocks (frombody .is-layout-flex > *
) in the layout. As a result, the child block will be centered left and right, regardless of the justification setting.Non-iframed (custom fields panel is enabled)
This is the correct layout. Zero margin overrides the block's left and right auto margins.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
I have confirmed that this issue occurs with WP6.4 or later. In other words, you should be able to reproduce this issue with the following versions:
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: