From 8a16a69caff33fa3d504f87343db9d7ffdf955ad Mon Sep 17 00:00:00 2001 From: Matt Driscoll Date: Thu, 16 Nov 2023 11:40:56 -0800 Subject: [PATCH] fix(list-item, stack): stretch action-menu and handle when placed inside a list-item or stack. (#8185) **Related Issue:** #8187 ## Summary - Adds css to stack and list-item to treat an action-menu the same as an action - This makes the action take up the full height of the list-item/stack - Previously, the action-menu would stop at 32x32 pixels. --- .../src/components/list-item/list-item.scss | 4 +++- .../src/components/list/list.stories.ts | 20 +++++++++++++++++++ .../src/components/stack/stack.scss | 4 +++- .../src/components/stack/stack.stories.ts | 15 ++++++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) diff --git a/packages/calcite-components/src/components/list-item/list-item.scss b/packages/calcite-components/src/components/list-item/list-item.scss index 3638453dc01..928464a0f61 100755 --- a/packages/calcite-components/src/components/list-item/list-item.scss +++ b/packages/calcite-components/src/components/list-item/list-item.scss @@ -136,7 +136,9 @@ td:focus { .actions-start, .actions-end { - ::slotted(calcite-action) { + ::slotted(calcite-action), + ::slotted(calcite-action-menu), + ::slotted(calcite-handle) { @apply self-stretch; color: inherit; diff --git a/packages/calcite-components/src/components/list/list.stories.ts b/packages/calcite-components/src/components/list/list.stories.ts index f8aac4fea92..dc371b3f932 100644 --- a/packages/calcite-components/src/components/list/list.stories.ts +++ b/packages/calcite-components/src/components/list/list.stories.ts @@ -65,6 +65,26 @@ export const onlyLabelVersusOnlyDescription_TestOnly = (): string => html` `; +export const stretchSlottedContent = (): string => html` + + + + + + + + + + + +`; + export const nestedItems = (): string => html` export const simple = (): string => simpleHTML; +export const stretchSlottedContent = (): string => html` + + + + Hello World + + My great chip + + + + + + +`; + export const simpleDarkMode_TestOnly = (): string => simpleHTML; simpleDarkMode_TestOnly.parameters = { modes: modesDarkDefault };