WordPress/wp-content/themes
audrasjb 190350ecea Twenty Twenty-One: Refine primary-navigation.js behavior for anchor links.
This changeset fixes a bug where clicking on an anchor link in the content changes the state of the button that opens and closes the responsive menu. It adds a conditional to check if the clicked anchor link is inside the primary navigation menu (`#site-navigation`), in order to prevent content anchor links from changing the state of the button.

Known limitations: The state of the button is not reset when the browser is resized. If a menu anchor link is first clicked while on desktop width, and the browser width is reduced, the menu button will show the text "Close" even though the menu is not opened.

Props andreaboe, sabernhardt, poena, afercia, chaion07, cu121, mukesh27.
Fixes #53331.

Built from https://develop.svn.wordpress.org/trunk@55124


git-svn-id: http://core.svn.wordpress.org/trunk@54657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-01-24 12:59:10 +00:00
..
twentyeleven Bundled Themes: Fix Separator block "Dots" style variation on various themes. 2023-01-22 20:07:12 +00:00
twentyfifteen Bundled Themes: Fix Separator block "Dots" style variation on various themes. 2023-01-22 20:07:12 +00:00
twentyfourteen Bundled Themes: Fix Separator block "Dots" style variation on various themes. 2023-01-22 20:07:12 +00:00
twentynineteen Happy New Year! 🎄 2023-01-01 00:06:18 +00:00
twentyseventeen Happy New Year! 🎄 2023-01-01 00:06:18 +00:00
twentysixteen Bundled Themes: Fix Separator block "Dots" style variation on various themes. 2023-01-22 20:07:12 +00:00
twentyten Happy New Year! 🎄 2023-01-01 00:06:18 +00:00
twentythirteen Bundled Themes: Fix Separator block "Dots" style variation on various themes. 2023-01-22 20:07:12 +00:00
twentytwelve Happy New Year! 🎄 2023-01-01 00:06:18 +00:00
twentytwenty Bundled Themes: Add Mastodon domains for menu item icons. 2023-01-13 13:19:13 +00:00
twentytwentyone Twenty Twenty-One: Refine primary-navigation.js behavior for anchor links. 2023-01-24 12:59:10 +00:00
twentytwentythree Twenty Twenty-Three: Fix incorrect gradient values in Aubergine theme. 2023-01-09 23:45:12 +00:00
twentytwentytwo Twenty Twenty-Two: Remove color reference from pattern names. 2023-01-24 08:51:12 +00:00
index.php