-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
[FEATURE] Dropdown menu functionality #451
Comments
👀 |
https://github.com/hugo-fixit/FixIt/blob/master/README.md I am seeing you're adding new enhancement every week. Thanks very much. |
This is surprisingly difficult. A "hover dropdown menu" with good accessibility that works on all devices requires some careful design and implementation. I am not satisfied with neither https://codingnconcepts.com/hugo/nested-menu-hugo/ nor FixIt's implementation. A trivial hover menu works great on mouse and keyboard devices, but is completely unusable on a touch device (say a tablet). Upon clicking, the browser just follows the link on the parent element before it can display the menu. Both implementations mentioned previously failed on this. CodingnConcepts' implementation kind of gets around this with its little triangle, but that's too small as a touch target. Another important functionality is that the menus need to be keyboard navigable. Tabs should be able to iterate through them, arrows keys should work as well, escape key should close them. This needs to be handled carefully. There are other details such as handling horizontal and vertical overflows. Time delay between the mouse leaving and menu closing. Animinations. I didn't manage to find any off the shelf library that does all of this. I welcome anyone who want to attempt this share their plans here before proceeding a full implementation. |
The Popover API might save us https://developer.mozilla.org/en-US/docs/Web/API/Popover_API |
Describe the feature you want 描述你的功能需求
Dropdown menu functionality for multilevel navigation.
link:
https://codingnconcepts.com/hugo/nested-menu-hugo/
The text was updated successfully, but these errors were encountered: