Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu hover/click settings toggle #575

Merged
merged 9 commits into from
Sep 3, 2020
Merged

Conversation

EvanHerman
Copy link
Contributor

@EvanHerman EvanHerman commented Aug 28, 2020

Resolves #529

This PR introduces a new customizer setting Menus > Menu Behavior > Show sub menus on hover.. This is false (unchecked) by default, so sites that are currently using the theme will see no changes. New users, or those who want to show submenus on hover can enable this setting.

Demo

menu-hover

@EvanHerman EvanHerman added [Type] Enhancement Something new that adds functionality [Status] Needs Review Tracking pull requests that need another set of eyes labels Aug 28, 2020
@EvanHerman EvanHerman added this to the Next Release milestone Aug 28, 2020
@EvanHerman EvanHerman requested a review from richtabor August 28, 2020 17:34
@EvanHerman EvanHerman self-assigned this Aug 28, 2020
@cypress
Copy link

cypress bot commented Aug 28, 2020



Test summary

14 0 0 0


Run details

Project Go
Status Passed
Commit 32cf5b7
Started Sep 2, 2020 10:57 PM
Ended Sep 2, 2020 10:58 PM
Duration 01:04 💡
OS Linux Debian - 10.5
Browser Chrome 85

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@sirjonathan
Copy link

Just to confirm, will this allow the parent menu item to be clicked?

@richtabor
Copy link
Contributor

Also, we should make this setting the default behavior (which will resolve the top-level menu item issue).

@EvanHerman
Copy link
Contributor Author

@sirjonathan Correct. When the option is checked in the customizer, as outlined in the gif above, you'll be able to click the top level menu item.

@EvanHerman
Copy link
Contributor Author

There still seems to be some weird behavior on mobile, and the 'hover to show sub menu items' doesn't currently work when using header 4. I'm also not sure how hover it should behave on mobile. There isn't technically a hover state on mobile like there is when using a mouse.

@sirjonathan
Copy link

I'm happy to test this before you push it out, if it's helpful! Just point me in the right direction?

@richtabor
Copy link
Contributor

I think we'll follow up with a few more tweaks for mobile, but its fine in its current form.

@richtabor richtabor merged commit f5b7d75 into master Sep 3, 2020
@richtabor richtabor deleted the poc-menu-or-hover-click branch September 3, 2020 15:50
@EvanHerman EvanHerman modified the milestones: Next Release, 1.3.6 Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Review Tracking pull requests that need another set of eyes [Type] Enhancement Something new that adds functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

menu-item isn’t working if submenu exist
3 participants