-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(MatMenu): option to open menu instantly #13017
Comments
In 7.0 the menu will have a much quicker animation that is in-line with the latest Material Design spec. |
Thats good to hear but there would be no way for skipping the animation altogether just for the MatMenu? |
You should be able to use the |
Well, sadly this seems to not work on the MatMenu. Not really sure why though... Example: off topic: thanks for the quick responses on this! 😃 |
@devversion Can #12829/#12839 be expanded to include |
@josephperrott Actually We need to come with a better solution for such things. Unfortunately there is no easy way to detect the |
Any news about it ? I need it too :) |
I'm also looking for an option to disable animation for MatMenu only. It had terrible performance issue on MS Edge. |
This looks related to #18340. As stated in my initial comment, we need to come up with a better solution for these overlay based components. @crisbeto sent a proposal for dialog to allow configuration of enter and exit duration. That might could work for the bottom-sheet and menu too. I'm hoping we can find a consistent solution that works for all overlay-based components. |
We would also appreciate this option. Users are spending more time waiting for the menu to appear than making a selection. |
we're considering using another menu library because the animation feels too toy-like and distracting, and doesn't suit a more mature, enterprise audience. ^ this is just my opinion of course. but there should be a way to turn it off |
use the cdk connected overlay |
To disable the animation in the mat menu, add the following CSS.
Please note: this will affect all components. |
Feature request
The menu should (optionally) open without the animation (like stated in the Material Design Spec:
https://material.io/design/components/menus.html#behavior -> Motion Section)
What is the expected behavior?
What is the current behavior?
Menu opens with (kinda slow) animation.
What is the use-case or motivation for changing an existing behavior?
Alignment with the Material Design Spec and faster user interaction on Desktop Browsers
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
6.4.7
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: