From 29d8ce53ac815734c26ddfb364ce7b7f2289bf66 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Tue, 25 Jun 2024 09:55:11 -0700 Subject: [PATCH] fix(flow-item): fix inverted footer start/end slots --- .../components/flow-item/flow-item.stories.ts | 12 +++---- .../src/components/flow-item/flow-item.tsx | 2 +- .../src/components/panel/panel.stories.ts | 34 +++++++------------ 3 files changed, 19 insertions(+), 29 deletions(-) diff --git a/packages/calcite-components/src/components/flow-item/flow-item.stories.ts b/packages/calcite-components/src/components/flow-item/flow-item.stories.ts index 102b3a1294f..6ce81621e66 100644 --- a/packages/calcite-components/src/components/flow-item/flow-item.stories.ts +++ b/packages/calcite-components/src/components/flow-item/flow-item.stories.ts @@ -65,16 +65,16 @@ const contentHTML = html` `; const footerHTML = html` - Naw. - Yeah! + Footer start + Footer end `; const flowItemContent = `${headerHTML} ${contentHTML} - Naw. - Yeah! + Footer + Footer `; export const simple = (args: FlowItemStoryArgs): string => html` @@ -93,8 +93,8 @@ export const simple = (args: FlowItemStoryArgs): string => html` ${contentHTML} - Naw. - Yeah! + Footer + Footer `; diff --git a/packages/calcite-components/src/components/flow-item/flow-item.tsx b/packages/calcite-components/src/components/flow-item/flow-item.tsx index 55b0cbc0d58..9d87efa0715 100644 --- a/packages/calcite-components/src/components/flow-item/flow-item.tsx +++ b/packages/calcite-components/src/components/flow-item/flow-item.tsx @@ -393,8 +393,8 @@ export class FlowItem - + diff --git a/packages/calcite-components/src/components/panel/panel.stories.ts b/packages/calcite-components/src/components/panel/panel.stories.ts index 55aec5b6167..a5d8c6f7ab9 100644 --- a/packages/calcite-components/src/components/panel/panel.stories.ts +++ b/packages/calcite-components/src/components/panel/panel.stories.ts @@ -65,8 +65,8 @@ const contentHTML = html` `; const footerHTML = html` - Naw. - Yeah! + Footer start + Footer end `; const panelContent = `${headerHTML} @@ -253,7 +253,7 @@ export const actionBarBackgroundColor_TestOnly = (): string =>

Hello world!

Hello world!

Hello world!

-

Slotted content!

+

Footer!

`; export const footerWithoutContent_TestOnly = (): string => @@ -262,7 +262,7 @@ export const footerWithoutContent_TestOnly = (): string => heading="Header!" style="width: 300px; height:auto; --calcite-panel-header-border-block-end:none;" > -

Footer content!

+

Footer!

`; export const actionBarWithoutContent_TestOnly = (): string => @@ -309,7 +309,7 @@ export const footerAndActionBarWithoutContent_TestOnly = (): string => -

Footer content!

+

Footer!

`; export const flexContent_TestOnly = (): string => @@ -395,7 +395,7 @@ export const footerAndContentTopBottomSlots = (): string => html`

Hello world!

Hello world!

Slot for a content-bottom.
-

Slotted content!

+

Footer!

`; @@ -405,22 +405,12 @@ export const footerStartAndEndSlots = (): string => html`
header-content slot

Slotted content!

Slot for a content-bottom.
- - + Footer start + Footer end `;