gutenberg
gutenberg copied to clipboard
Navigation item with sub menu is missing wp-block-navigation-item__label span
Description
If a navigation item has a submenu, the item itself is missing the <span class="wp-block-navigation-item__label"> around the navigation item text, which makes it harder to style it.
Step-by-step reproduction instructions
- Add a navigation block
- Add a navigation item to this block
- Add a second navigation item to this block
- Add a submenu item to the second navigation block
- Check the source code
Screenshots, screen recording, code snippet
Environment info
– WordPress 6.4 – No Gutenberg plugin
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
The submenu block should reflect the same markup as the core/navigation-link. This needs a fix.
I'd like to work on this issue. Could you confirm if this still needs fixing and whether my approach below makes sense?
It looks to me that this has been fixed within https://github.com/WordPress/gutenberg/pull/67198. At least, my workaround is no more necessary.