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

feat(mat-menu): Open nested menus should be delayed on hover. #25888

Open
infacto opened this issue Oct 28, 2022 · 1 comment
Open

feat(mat-menu): Open nested menus should be delayed on hover. #25888

infacto opened this issue Oct 28, 2022 · 1 comment
Labels
area: material/menu feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@infacto
Copy link

infacto commented Oct 28, 2022

Feature Description

An option to delay the menu of nested items would be great.
This prevents the menus from blinking/flashing when you just hover/move the mouse quickly to another wanted item.

Solution: Add delay before opening the nested menu. Only a few milliseconds to prevent flashing menus when you just move the mouse around. The user can still click on a nested item to trigger the menu instantly. This will improve the UX. It's really annoying if the menus are flashing.

You can test my suggested behavior in other proven menus like in Windows 10. Just open a folder and open the context menu. You'll see that the nested menus don't open immediately. They are delayed. Same behavior in VSCode. A shorter delay than the Windows menus, but they are delayed. And I think we should implement this for the mat-menus too.

mat-menu vs-code
mat-menu vscode-menu

https://material.angular.io/components/menu/examples

Summary:

  • Delay nested menu on hover.
  • Open nested menu instantly on click.
  • Delay nested menu before close (hover leave).
  • Implement it with fixed delay time or as an option property with default value (the time in ms. Not just boolean).

Btw: Another related issue which is about delay before closing: #24476
We could combine both issues to add delay before and after.

I think this issue is more a bug than a feature. An unwanted behavior / bad UX. But anyway, it's no candidate for votes. It something what should be considered by the Angular team.

@infacto infacto added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Oct 28, 2022
@anschm
Copy link

anschm commented Dec 27, 2022

It would also be great if we can configure that nested menues opens on hover or only on click.

@andrewseguin andrewseguin added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: material/menu and removed needs triage This issue needs to be triaged by the team labels May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/menu feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

3 participants