From 2363b81820c04e2e1e18f036cba5d2a4b675a851 Mon Sep 17 00:00:00 2001 From: Adam Tirella Date: Tue, 27 Feb 2024 12:00:54 -0800 Subject: [PATCH] fix(card): Do not apply text color to slotted footer items --- .../src/components/card/card.scss | 2 -- .../src/components/card/card.stories.ts | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/calcite-components/src/components/card/card.scss b/packages/calcite-components/src/components/card/card.scss index 6b80ccd8fe7..8b6b3fdfb9a 100644 --- a/packages/calcite-components/src/components/card/card.scss +++ b/packages/calcite-components/src/components/card/card.scss @@ -153,12 +153,10 @@ @include slotted("footer-start", "*") { @apply text-n2-wrap self-center; margin-inline-end: auto; - color: var(--calcite-color-text-3); } @include slotted("footer-end", "*") { @apply text-n2-wrap self-center; - color: var(--calcite-color-text-3); } .checkbox-wrapper-deprecated { diff --git a/packages/calcite-components/src/components/card/card.stories.ts b/packages/calcite-components/src/components/card/card.stories.ts index d5436c665de..7bb6b24fcb1 100644 --- a/packages/calcite-components/src/components/card/card.stories.ts +++ b/packages/calcite-components/src/components/card/card.stories.ts @@ -231,6 +231,28 @@ export const deprecatedSlotsSelectable_TestOnly = (): string => html` `; +export const slottedFooterItems_TestOnly = (): string => html` +
+ + ${thumbnailHtml} +

Portland Businesses

+ by + example_user + +
+ Created: Apr 22, 2019 +
+ Updated: Dec 9, 2019 +
+ View Count: 0 +
+ Recent + Recreation +
+
+`; + export const darkModeRTL_TestOnly = (): string => html`
${thumbnailHtml}${titleHtml}${footerStartTextHtml}${footerEndButtonsHtml}