WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 2 months ago

#53331 new defect (bug)

Twenty Twenty-One: Bug in primary-navigation.js

Reported by: andreaboe Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: needs-patch
Focuses: javascript Cc:

Description

The function that closes the menu and scrolls to anchor when an anchor link is clicked should target only clicks on anchor links in the menu.

Otherwise aria-expanded is toggled when an anchor link in the content area is clicked.

-Andrea

Attachments (1)

anchor-link-menu-button-toggled.png (19.5 KB) - added by sabernhardt 2 months ago.
menu toggle button, before and after clicking anchor link within content

Download all attachments as: .zip

Change History (2)

#1 @sabernhardt
2 months ago

  • Focuses javascript added
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Thanks for the report!

I did not need to have the browser inspector open to see that the menu toggle button changes when clicking an anchor link within the content.

@sabernhardt
2 months ago

menu toggle button, before and after clicking anchor link within content

Note: See TracTickets for help on using tickets.