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 f8bda120535..58093cc0436 100755 --- a/packages/calcite-components/src/components/list-item/list-item.scss +++ b/packages/calcite-components/src/components/list-item/list-item.scss @@ -158,4 +158,8 @@ td:focus { @apply border-solid border-0 border-t border-color-3; } +::slotted(calcite-list:empty) { + @apply py-3; +} + @include base-component(); diff --git a/packages/calcite-components/src/components/list/list.stories.ts b/packages/calcite-components/src/components/list/list.stories.ts index 63fba29da7d..bbc82767442 100644 --- a/packages/calcite-components/src/components/list/list.stories.ts +++ b/packages/calcite-components/src/components/list/list.stories.ts @@ -722,6 +722,43 @@ export const sortableNestedList_TestOnly = (): string => html` `; +export const emptyOpenLists_TestOnly = (): string => html` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `; + export const listWithEmptyChildList_TestOnly = (): string => html`