Navigation Link block uses incorrect classname for nested submenu #21444
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Code Quality
Issues or PRs that relate to code quality
Describe the bug
The Navigation block uses a Navigation Link inner block and each Navigation Link can also have child Navigation Links to create sub-menus, e.g.:
However when building a deeply nested navigation block and checking the class names used in a post, an incorrect

wp-block-navigation__container
class is used withinwp-block-navigation-link
:This can also be seen in the Navigation Link's edit function where an incorrect
wp-block-navigation__container
class is used:https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/navigation-link/edit.js#L300
This should be easier to solve in both places once #21075 is merged.
To reproduce
Steps to reproduce the behavior:
Expected behavior
The
wp-block-navigation__container
should be changed towp-block-navigation-link__container
.The text was updated successfully, but these errors were encountered: