Skip to content

Site Editor: Can't remove group block margins #36797

@jeyip

Description

@jeyip

Description

When adding group blocks to the site editor, there's always an accompanying top margin. There doesn't appear to be an obvious way to remove it.

I stumbled across this issue while building a test site for the editor. I wanted add group blocks to the top level document to organize my page layout, but the margins kept introducing unwanted white space.

Screen Shot 2021-11-23 at 4 06 05 PM

Step-by-step reproduction instructions

  1. Enable full site editing by activating the Gutenberg plugin and an FSE enabled theme (Ex. Quadrat)
  2. Navigate to the site editor
  3. Add a group block
  4. Add content into the group block for easier manipulation and visibility
  5. Verify from the dev console that there is an additional top margin added to the block
  6. Navigate to the site's frontend
  7. Verify from the dev console that there is also an additional top margin for the group block

Screenshots, screen recording, code snippet

Frontend

Screen Shot 2021-11-23 at 3 58 58 PM

Site Editor

Screen Shot 2021-11-23 at 3 57 06 PM

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

[Block] GroupAffects the Group Block (and row, stack and grid variants)[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled later

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions