Skip to content

Commit

Permalink
fix(menu): update default min width to spec and allow max-width to in…
Browse files Browse the repository at this point in the history
…herit

PiperOrigin-RevId: 563224653
  • Loading branch information
Elliott Marquez authored and copybara-github committed Sep 6, 2023
1 parent ed539c6 commit 2e25bf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions menu/demo/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ const sharedStyle = css`
border: 1px solid var(--md-sys-color-on-background);
color: var(--md-sys-color-on-background);
width: 100px;
padding: 16px;
text-align: center;
}
.md-stories-bg-override {
display: flex;
Expand Down
4 changes: 3 additions & 1 deletion menu/internal/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
)
);

min-width: 300px;
min-width: 112px;
}

md-focus-ring {
Expand All @@ -72,6 +72,7 @@
max-height: inherit;
height: inherit;
min-width: inherit;
max-width: inherit;
}

.fixed {
Expand All @@ -84,6 +85,7 @@
display: block;
overflow: auto;
min-width: inherit;
max-width: inherit;
border-radius: inherit;
}

Expand Down

0 comments on commit 2e25bf8

Please sign in to comment.