Skip to content

Mobile menu remains open after navigating to a section #58

@Alfredcrmn

Description

@Alfredcrmn

Describe the bug
On mobile viewports, when the hamburger menu is open and a user clicks a link to navigate to a page section, the navigation succeeds, but the menu overlay remains open. The user is forced to manually close the menu to see the content they just navigated to.

To Reproduce

  1. Navigate to the site on a mobile device (or using mobile emulation in browser dev tools).
  2. Tap the hamburger icon to open the main navigation menu.
  3. Tap on any section button.
  4. Observe that the page correctly scrolls to the corresponding section.
  5. Observe that the navigation menu remains open, covering the screen.

Expected behavior
When a user clicks a navigation link from within the hamburger menu, the menu should automatically close as it navigates the user to the selected section.

Before clicking on a section After clicking on a section
Image Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions