Skip to content

Nav Links are still clickable when the navigation is closed in Mobile View #65

@tomjbradley

Description

@tomjbradley

Problem
When the viewport is less than 780px (mobile width) and the navigation is closed the nav links are still clickable.

Steps to reproduce

  1. Install wordpress
  2. Install the WP Indigo theme
  3. Create a Menu with location "Primary Menu"
  4. Go to the home page
  5. Resize the window to less than 780px
  6. Try to click where the links would be if the navigation were opened

Expected Output
I excepted the links to not be clickable when the navigation is closed

System Setup
Operating System: Windows 10
Local Development Environment: XAMPP
Wordpress Version: 5.7

Additional Info
I have no other plugins installed and I've tested this on a fresh copy of wordpress, so I think its a bug in the code.

I believe this is just a simple fix and the links just need the visibility: hidden property when closed. I'd be happy to work on this and submit the PR soon.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions