[wp-trac] [WordPress Trac] #55773: FSE navigation menu - styling problem
WordPress Trac
noreply at wordpress.org
Wed May 18 12:21:49 UTC 2022
#55773: FSE navigation menu - styling problem
--------------------------+-----------------------------
Reporter: jim5471 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WordPress 5.9.3 running Twenty Twenty-Two theme
also WordPress 6.0-RC3 running Twenty Twenty-Two theme
No plugins active
There seems to be a problem with the styling of the FSE navigation menu.
Looking at the WordPress website https://wordpress.org/ the navigation
menu is styled (in blue) to show which page you are on and in the case of
a nested menu item it shows both the the subpage and the ancestor menu
item.
But this isn't working reliably on FSE.
With a similar menu I have found that the styling is absent in the
following cases...
the homepage which was the 'Front Page'
with a nested menu of 2 subpages the styling was absent on the first
subpage which was the 'Posts Page'
with a nested menu and a subpage selected the styling is absent on the
menu-ancestor
Styling is provided by "current-menu-item" Class in the li tag.
"aria-current='page'" is also absent from the link when the styling isn't
working.
Maybe someone can confirm this is a bug - thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55773>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list