-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When a block type has margins, defined either through theme.json or global styles, they can be overridden by layout styles e.g. the constrained layout which removes the start and end margins on the first and last child elements respectively.
When the block list appender is inserted within a container with such a layout, the style removing the last child's margin now targets the appender instead of the last block causing a layout shift
Step-by-step reproduction instructions
- Navigate to Appearance > Editor > Global Styles > Blocks > Cover
- Apply vertical margins to Cover blocks
- Add a Cover block within a Group block to a page or post
- Note the Group block's default constrained layout removes the Cover block's margins
- Select the Group block and see the bottom margin suddenly applied
Screenshots, screen recording, code snippet
Screen.Recording.2024-05-22.at.4.50.11.PM.mp4
Environment info
No response
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
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended