Bug on useRootPaddingAwareAlignments
mode when using core/columns
block with alignfull
#50861
Labels
[Block] Columns
Affects the Columns Block
[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
When
useRootPaddingAwareAlignments
mode is enabled (ontheme.json
), root left and right padding will be added tocore/group
blocks with aconstrained
layout, and any nested full-width (alignfull
) blocks will stretch outside of the parent group itself.The children of the
alignfull
blocks will also get additional left and right padding to compensate for the negative margin given to thealignfull
parent block.However, this causes issues if the
alignfull
block is acore/columns
block. Thecore/column
blocks inside will automatically get additional left and right padding.This issue also happens on
core/group
block withrow
mode (horizontal flex).This issue doesn't happen in the Block Editor preview, only on the frontend side.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
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: