Skip to content

Navigation overlays: Social Icons block gap is being zeroed out (margin-top: 0;) #76936

@bgardner

Description

@bgardner

Description

When adding the Social Icons block in a Navigation Overlay template part, the blockGap is being zeroed out on the front end. This is likely caused by the following CSS, which is targeting the Navigation UL, and inadvertently also hitting the ul.wp-block-social-links:

.wp-block-navigation ul  {
    margin-bottom: 0;
    margin-left: 0;
    margin-top: 0;
    padding-left: 0;
}

Step-by-step reproduction instructions

  1. Go to Header template part, edit Navigation, create Navigation Overlay part.
  2. Add content to the Navigation Overlay, including Social Icons block.
  3. Save changes. Go to front end, simulate mobile view, trigger responsive menu icon.
  4. View front end Social Icons with zero blockGap being applied.

Screenshots, screen recording, code snippet

Site editor view:

Image

Front end view:

Image

Environment info

WordPress 7.0 RC2, TT5 theme active, Gutenberg not active.

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

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