diff --git a/packages/calcite-components/.storybook/main.ts b/packages/calcite-components/.storybook/main.ts index f349f699fa5..c1eb64581fc 100644 --- a/packages/calcite-components/.storybook/main.ts +++ b/packages/calcite-components/.storybook/main.ts @@ -23,6 +23,19 @@ module.exports = { ], }; }, + previewHead: (head: string): string => + ` + ${head} + ${ + process.env.STORYBOOK_SCREENSHOT_TEST_BUILD + ? `` + : "" + } + `, managerHead: (head: string): string => { if (process.env.STORYBOOK_SCREENSHOT_TEST_BUILD) { return head; diff --git a/packages/calcite-components/src/components/alert/alert.stories.ts b/packages/calcite-components/src/components/alert/alert.stories.ts index 9fd0a1f14df..3ee99ae940f 100644 --- a/packages/calcite-components/src/components/alert/alert.stories.ts +++ b/packages/calcite-components/src/components/alert/alert.stories.ts @@ -160,11 +160,6 @@ queue_NoTest.parameters = { }; export const darkModeRTL_TestOnly = (): string => html` - html` darkModeRTL_TestOnly.parameters = { modes: modesDarkDefault }; export const actionsEndNoQueue_TestOnly = (): string => html` -
Hello there!
Do you really want to proceed?
@@ -202,11 +192,6 @@ export const actionsEndNoQueue_TestOnly = (): string => html` `; export const actionsEndQueued_TestOnly = (): string => html` -
Hello there, alert one!
Do you really want to proceed?
@@ -227,11 +212,6 @@ export const actionsEndQueued_TestOnly = (): string => html` `; export const autoClosableRetainsCloseButton_TestOnly = (): string => html` -
Here's a general bit of information
Some kind of contextually relevant content
diff --git a/packages/calcite-components/src/components/block/block.stories.ts b/packages/calcite-components/src/components/block/block.stories.ts index ffffc2662ce..5f100f674a1 100644 --- a/packages/calcite-components/src/components/block/block.stories.ts +++ b/packages/calcite-components/src/components/block/block.stories.ts @@ -218,11 +218,6 @@ export const contentSpacing_TestOnly = (): string => export const loadingWithSlottedIcon_TestOnly = (): string => html` - @@ -233,11 +228,6 @@ export const loadingWithSlottedIcon_TestOnly = (): string => export const loadingWithNoStatusNorSlottedIcon_TestOnly = (): string => html` -
Use layer effects sparingly
@@ -247,11 +237,6 @@ export const loadingWithNoStatusNorSlottedIcon_TestOnly = (): string => export const loadingWithStatusIcon_TestOnly = (): string => html` - diff --git a/packages/calcite-components/src/components/dropdown/dropdown.stories.ts b/packages/calcite-components/src/components/dropdown/dropdown.stories.ts index c86923adf12..b3f18ff15b1 100644 --- a/packages/calcite-components/src/components/dropdown/dropdown.stories.ts +++ b/packages/calcite-components/src/components/dropdown/dropdown.stories.ts @@ -184,11 +184,6 @@ export const itemsAsLinks = (): string => html` `; export const darkModeRTL_TestOnly = (): string => html` - html` itemsAsLinksDarkMode.parameters = { modes: modesDarkDefault }; export const scrollingAfterCertainItems_TestOnly = (): string => html` - html` - Open Dropdown html` `; export const noScrollingWhenMaxItemsEqualsItems_TestOnly = (): string => html` - Activate Dropdown Relevance @@ -343,35 +323,25 @@ export const noScrollingWhenMaxItemsEqualsItems_TestOnly = (): string => html` < `; -export const disabled_TestOnly = (): string => html` - - Open Dropdown - - 1 - 2 - 3 - 4 - 5 - - - 6 - 7 - 8 - 9 - 10 - - `; +export const disabled_TestOnly = (): string => html` + Open Dropdown + + 1 + 2 + 3 + 4 + 5 + + + 6 + 7 + 8 + 9 + 10 + +`; export const flipPositioning_TestOnly = (): string => html` -
Open Dropdown @@ -390,11 +360,6 @@ flipPositioning_TestOnly.parameters = { }; export const alignedCenter_TestOnly = (): string => html` -
html` `; export const alignedCenterRTL_TestOnly = (): string => html` -
html` export const flipPlacements_TestOnly = (): string => html` html` -
html` - html`
`; -export const darkModeRTL_TestOnly = (): string => html` -
- ${referenceElementHTML} - - ${contentHTML} - -
`; +export const darkModeRTL_TestOnly = (): string => html`
+ ${referenceElementHTML} + + ${contentHTML} + +
`; darkModeRTL_TestOnly.parameters = { modes: modesDarkDefault }; @@ -101,11 +96,6 @@ nested.parameters = { }; export const flipPlacements_TestOnly = (): string => html` -
nostrud exercitation @@ -120,11 +110,6 @@ export const flipPlacements_TestOnly = (): string => html` `; export const scaleConsistencyPopoverHeadingActionSlottedIcon_TestOnly = (): string => html` -
${referenceElementHTML} html` -
${referenceElementHTML} html` `; export const mediumScaleLayout_TestOnly = (): string => html` -
${referenceElementHTML} html` `; export const largeScaleLayout_TestOnly = (): string => html` -
${referenceElementHTML} html` `; export const darkModeRTL_TestOnly = (): string => html` - html`