angular / angular/components

mat-menu-item width

Open
#18,532 7 comments 9 reactions 0 assignees View on GitHub
area: material/menu feature P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Feature Description

I would like to set the width of the mat-menu-item to the same with as the button wich opens the menu.

#### Use Case

I have a menu and a larger button open button. It would look so much better if the mat-menu-item has the same width as the button. Actually there is no simple option.

Contributor guide

Open the contributing guide

Research direction

Locate the mat-menu-item and menu implementation and its existing tests, then read how menu width and trigger sizing are handled. Done means a supported option makes the menu item width match the button that opens the menu, with tests covering the requested behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.