From 4b00a9561c39b8f87299daed36e4aff0679e1263 Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Thu, 12 Oct 2023 12:58:37 -0700 Subject: [PATCH] fix(list): list items will not escape their parent when parent width is restricted PiperOrigin-RevId: 572988261 --- list/internal/listitem/_list-item.scss | 2 ++ menu/internal/menuitem/_menu-item.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/list/internal/listitem/_list-item.scss b/list/internal/listitem/_list-item.scss index 961c063d2f..8dc8fbe507 100644 --- a/list/internal/listitem/_list-item.scss +++ b/list/internal/listitem/_list-item.scss @@ -79,6 +79,8 @@ border-radius: inherit; display: flex; flex: 1; + max-width: inherit; + min-width: inherit; outline: none; // hide android tap color since we have ripple -webkit-tap-highlight-color: transparent; diff --git a/menu/internal/menuitem/_menu-item.scss b/menu/internal/menuitem/_menu-item.scss index 460a696428..f9f84c4e00 100644 --- a/menu/internal/menuitem/_menu-item.scss +++ b/menu/internal/menuitem/_menu-item.scss @@ -99,6 +99,8 @@ border-radius: inherit; display: flex; flex: 1; + max-width: inherit; + min-width: inherit; outline: none; // hide android tap color since we have ripple -webkit-tap-highlight-color: transparent;