-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
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.:
- Navigation
'- Navigation Link
'- Navigation Link
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 within wp-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:
- Build a deeply nested navigation block
- Preview the post
- Observe the incorrect class names when inspecting a nested menu
Expected behavior
The wp-block-navigation__container should be changed to wp-block-navigation-link__container.