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

Pattern for hover menus #297

Open
SteveALee opened this issue May 7, 2021 · 2 comments
Open

Pattern for hover menus #297

SteveALee opened this issue May 7, 2021 · 2 comments

Comments

@SteveALee
Copy link
Contributor

SteveALee commented May 7, 2021

Hover menus cause a menu to pop up when the pointer hovers over a collapsed item or disappears when the pointer is moved away. By definition these work only in browser contexts with pointers and not touch - eg desktop and not mobile.

The alternative is click menus where a click is required to open & close a menu or sub menu.

This article covers important UX issues with hover menus.

I think you should should stop building hover menus too. I’m here to tell you why.

It would appear the are some important Cognitive accessibility issues here. Several of our patterns indirectly touch on the problems with hover menus:

  • Use a Familiar Hierarchy and Design
  • Make the Site Hierarchy Easy to Understand and Navigate
  • Ensure Controls and Content Do Not Move Unexpectedly
  • Clearly Identify Controls and Their Use
  • Use a Familiar Hierarchy and Design

But perhaps there should be a new pattern, an new user story or perhaps a new persona?

Personal observations

@SteveALee : hover menu behaviour is confusing and usually end up making them vanish when I want them to appear.

@djkalbert : hover menus cause confusion about where I am or where I previously was within the menus

@SteveALee SteveALee changed the title Issues with hover menu Issues with hover menus May 7, 2021
@SteveALee SteveALee changed the title Issues with hover menus Pattern for hover menus May 7, 2021
@djkalbert
Copy link

I also have some issues with menus closing by itself whether it's hover menu or click menu. There are 2 cases to this:

  1. Once you click and open the sub menus underneath a main menu, if you move the cursor outside the boundary, then the sub-menus sometimes closes
  2. Once you click and open the sub menus underneath a main menu, if you move the cursor and click other menu to see the sub menu underneath, then the previously opened sub menu would automatically close.

Overall, in both of these cases, I am not able to click and see multiple menus at the same time.

This can be problematic if there are many sub menus underneath one menu and there are multiple menus to navigate because it is hard to remember which sub menus were underneath which one and I'd have to click each one of them to find out. Especially, when my ADHD symptoms are more vivid, I keep forgetting where the submenus were before so I often find myself going back and forth clicking the menus multiple times to be able to remember and navigate.

My suggestion is to make menus to be click menus but enable multiple menus to be clicked and stay opened at the same time to give users a choice if they want to be able to see submenus across different menus in one sight to be able to better navigate and have less cognitive strain to remember the sitemap.

@anevins12
Copy link
Member

I support the idea of having multiple submenus open at the same time, however that may not work when there is limited space for those menus. Often, submenus are implemented using CSS absolute positioning giving risk to submenus overlapping one another. A reason that submenus only open one at a time may have been to prevent this overlapping scenario where content and functionality would be obscured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants