From 190ea14340a15e6946f6dc136c3b81978b2cadab Mon Sep 17 00:00:00 2001 From: Branden Date: Tue, 27 Feb 2024 12:46:45 -0800 Subject: [PATCH 1/2] added alignText test --- .../src/components/alert/alert.stories.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/calcite-components/src/components/alert/alert.stories.ts b/packages/calcite-components/src/components/alert/alert.stories.ts index 99c2654aca4..5008f270a0e 100644 --- a/packages/calcite-components/src/components/alert/alert.stories.ts +++ b/packages/calcite-components/src/components/alert/alert.stories.ts @@ -218,3 +218,13 @@ export const autoClosableRetainsCloseButton_TestOnly = (): string => html` Take action `; + +export const textAlignDoesNotAffectComponentAlignment_TestOnly = (): string => html` +
+ +
Trail Camera Report
+
We thought you might want to take a look
+ Take action +
+
+`; From 1ae93b992d202cf3488cefdb73001897b3b333b7 Mon Sep 17 00:00:00 2001 From: Branden Date: Tue, 27 Feb 2024 12:46:45 -0800 Subject: [PATCH 2/2] feat(alert): added a text alignment test to make sure external styling doesn't affect shadow dom --- .../src/components/alert/alert.stories.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/calcite-components/src/components/alert/alert.stories.ts b/packages/calcite-components/src/components/alert/alert.stories.ts index 99c2654aca4..5008f270a0e 100644 --- a/packages/calcite-components/src/components/alert/alert.stories.ts +++ b/packages/calcite-components/src/components/alert/alert.stories.ts @@ -218,3 +218,13 @@ export const autoClosableRetainsCloseButton_TestOnly = (): string => html` Take action `; + +export const textAlignDoesNotAffectComponentAlignment_TestOnly = (): string => html` +
+ +
Trail Camera Report
+
We thought you might want to take a look
+ Take action +
+
+`;