-
Notifications
You must be signed in to change notification settings - Fork 66
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
Conversation
Test summaryRun details
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 |
Just to confirm, will this allow the parent menu item to be clicked? |
Also, we should make this setting the default behavior (which will resolve the top-level menu item issue). |
@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. |
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. |
I'm happy to test this before you push it out, if it's helpful! Just point me in the right direction? |
I think we'll follow up with a few more tweaks for mobile, but its fine in its current form. |
Resolves #529
This PR introduces a new customizer setting
Menus > Menu Behavior > Show sub menus on hover.
. This isfalse
(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.https://8245-196281488-gh.circle-artifacts.com/0/phpunit-coverage/phpunit/html/index.html
Demo