You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Navigation block: Current menu item and ancestor class inconsistent application #50069
In Navigation block the current-menu-item class is being applied on the menu li tag. However, the current-menu-ancestor class is being applied on li > a tag.
Please fix the application of current-menu-ancestor class and apply it onto the parent li 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.
Activity
jordesign commentedon Jul 20, 2023
I've confirmed this behaviour in testing.