angular / angular/components

feat(cdk/menu): Add backdrop support and maybe able to customize all overlay options in CDK Menu

Open
#31,399 3 comments 5 reactions 0 assignees View on GitHub
area: cdk/menu feature P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

### Feature Description

I think the [CDK Menu Trigger](https://github.com/angular/components/blob/main/src/cdk/menu/menu-trigger-base.ts) should provide an ability to set a backdrop in the overlay and also other `OverlayConfig` options.

### Use Case

This lets us create a custom Menu closer to the Mat Menu which already supports a transparent backdrop.

Contributor guide

Open the contributing guide

Research direction

Start with src/cdk/menu/menu-trigger-base.ts and review how the CDK Menu Trigger creates its overlay, then compare the requested behavior with the existing Mat Menu backdrop support. Done means the trigger can provide a backdrop and expose the relevant OverlayConfig options needed to create a custom menu comparable in this respect to Mat Menu.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.