From 2e25bf8ce2979de4a5bccabc244fd4ca715ecebc Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Wed, 6 Sep 2023 14:57:13 -0700 Subject: [PATCH] fix(menu): update default min width to spec and allow max-width to inherit PiperOrigin-RevId: 563224653 --- menu/demo/stories.ts | 2 ++ menu/internal/_menu.scss | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/menu/demo/stories.ts b/menu/demo/stories.ts index b16191e421..739f213dfe 100644 --- a/menu/demo/stories.ts +++ b/menu/demo/stories.ts @@ -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; diff --git a/menu/internal/_menu.scss b/menu/internal/_menu.scss index f15a0d64aa..bf999de847 100644 --- a/menu/internal/_menu.scss +++ b/menu/internal/_menu.scss @@ -51,7 +51,7 @@ ) ); - min-width: 300px; + min-width: 112px; } md-focus-ring { @@ -72,6 +72,7 @@ max-height: inherit; height: inherit; min-width: inherit; + max-width: inherit; } .fixed { @@ -84,6 +85,7 @@ display: block; overflow: auto; min-width: inherit; + max-width: inherit; border-radius: inherit; }