Navigation block: Current menu item and ancestor class inconsistent application #50069
Labels
[Block] Navigation
Affects the Navigation Block
[Block] Submenu
Affects the Submenu Block - for submenus in navigation
[Feature] Navigation Menus
Any issue relating to Navigation Menus
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
In Navigation block the
current-menu-item
class is being applied on the menuli
tag. However, thecurrent-menu-ancestor
class is being applied onli > a
tag.Please fix the application of
current-menu-ancestor
class and apply it onto the parentli
tag, not the anchor tag.Step-by-step reproduction instructions
Set a Navigation menu block with submenus and visit a page from the submenu. Inspect the classes applied on the Navigation block list items.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.2, Gutenberg 15.6.2
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 text was updated successfully, but these errors were encountered: