hammadii123 / hammadii123/Fitolution

Mobile Menu Does Not Close When Clicking Outside the Menu

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
9
PR merge metrics
No merged PRs in 30d

Description

On small screen devices, the hamburger menu button correctly appears to toggle the mobile navigation menu. The menu opens and closes when clicking the hamburger icon or when a navigation link is clicked. However, if the user clicks anywhere outside the open menu (the backdrop or other parts of the page), the menu remains open. This behavior can negatively impact user experience by making it harder to close the menu intuitively. Adding an outside click listener or a backdrop that closes the menu when clicked would improve usability on mobile devices.

Image

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.