[wp-trac] [WordPress Trac] #53976: Twenty Twenty-One: Anchor link on the same page causes the menu button icon to turn upside down

WordPress Trac noreply at wordpress.org
Thu Jan 22 11:57:42 UTC 2026


#53976: Twenty Twenty-One: Anchor link on the same page causes the menu button icon
to turn upside down
-----------------------------------------------+---------------------------
 Reporter:  joelbermudez                       |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  Awaiting
                                               |  Review
Component:  Bundled Theme                      |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch reporter-feedback close  |     Focuses:  javascript
-----------------------------------------------+---------------------------
Changes (by ozgursar):

 * keywords:  has-patch needs-testing => has-patch reporter-feedback close


Comment:

 == Reproduction Report
 === Description
 This report validates whether the issue can be reproduced.

 === Environment
 - WordPress: 7.0-alpha-61215-src
 - PHP: 8.2.29
 - Server: nginx/1.29.4
 - Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 144.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-One 2.7
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Steps to Reproduce
 1. Install and activate Twenty Twenty-One
 2. Create a page and add some text or image as content
 3. Add an anchor link somewhere around the top of the page (e.g. pagetop)
 4. Create a back to top link at the bottom of the page or at the footer
 with anchor @pagetop
 5. View the page in frontend
 6. Open Chrome Dev Tools and narrow viewport to be able to see mobile menu
 7. Click the "back to top" link to trigger the anchor

 === Actual Results
 1. ❌ Error condition does not occur (unable to reproduce bug)

 === Additional Notes
 - Having checked the primary-navigation.js the mentioned by @joelbermudez,
 and reading further about this topic, issue seems to have resolved with
 the changeset https://core.trac.wordpress.org/changeset/55124

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53976#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list