Skip to content

Cover Block missing margin in dimensions panel #41879

@bradhogan

Description

@bradhogan

Description

The cover block has padding, but not margin. It's helpful to eliminate the margin above and/or below a cover block in certain design cases. For example, if you have multiple cover blocks in a row with different background colors, it looks odd if you have the default theme blockgap in between each. For now, I add a class mt-0 or mb-0 but would love to see Margin added to the Dimensions panel.

Thanks!

Step-by-step reproduction instructions

  1. Add cover block with a black background
  2. Add second cover block right after with a red background
  3. Notice space in between with no way to remove the margin

Screenshots, screen recording, code snippet

Screen Shot 2022-06-22 at 9 43 55 AM

Screen Shot 2022-06-22 at 9 48 12 AM

Environment info

  • WP 6.0
  • Gutenberg 13.4.0
  • Mac
  • Chrome

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

No labels
No labels

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