Skip to content

[Mat-Menu] Feature Request : add ability to remove backdrop #9938

Closed
@seedy

Description

@seedy

Bug, feature request, or proposal:

Just like dialogs, menus should be more configurable regarding their behaviour.
It's right now possible to stop menus from overlapping their trigger, but still the behaviour is not following material guidelines.
Removing backdrops might be a solution.

What is the expected behavior?

  1. Click on trigger button should open menu (with or without overlapping it)
  2. (If visible) Hover over trigger button with menu open should have the same behaviour as with menu closed
  3. Dismiss a menu by tapping outside of the menu, or by tapping the emitting button (if visible). (https://material.io/guidelines/components/menus.html#menus-behavior)

What is the current behavior?

Backdrops are disabling the whole behaviour regarding emitting buttons

What are the steps to reproduce?

https://stackblitz.com/edit/angular-bcfxwg

What is the use-case or motivation for changing an existing behavior?

Help us follow the guidelines bro!

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions