Skip to content

Empty Site logo block in navigation block results in empty li item on front #43470

@carolinan

Description

@carolinan

Description

When the site logo block is added to the navigation block, but no image is selected, there is a n empty <li> item in the navigation.

Step-by-step reproduction instructions

  1. Add a navigation block with two items.
  2. Place a site logo block between the two items. The site logo block should not have an image assigned.
  3. Save and view the front.
  4. Confirm that there is a larger space between the two menu items.
  5. View the page source to confirm that there is an empty <li></li> where the logo would have been placed if an image had been selected.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.0.1
Gutenberg trunk

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] NavigationAffects the Navigation Block[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions