Skip to content

Commit

Permalink
Merge pull request #13168 from guardian/fp/add-stories
Browse files Browse the repository at this point in the history
Add stories for cards with a vertical gap
  • Loading branch information
Fweddi authored Jan 16, 2025
2 parents 098fcb5 + 45d5010 commit 6c807d6
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions dotcom-rendering/src/components/Card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1611,3 +1611,106 @@ export const WithALargeGap = () => {
</>
);
};

export const WithNoVerticalGap = () => {
return (
<>
<CardWrapper>
<div
css={css`
width: 280px;
`}
>
<Card
{...basicCardProps}
isOnwardContent={true}
imagePositionOnDesktop="bottom"
format={{
display: ArticleDisplay.Standard,
design: ArticleDesign.Standard,
theme: Pillar.Opinion,
}}
/>
</div>
</CardWrapper>
</>
);
};

export const WithAVerticalGapWhenLegacyContainer = () => {
return (
<>
<CardWrapper>
<div
css={css`
width: 280px;
`}
>
<Card
{...basicCardProps}
containerType={'dynamic/fast'}
imagePositionOnDesktop="bottom"
format={{
display: ArticleDisplay.Standard,
design: ArticleDesign.Standard,
theme: Pillar.Opinion,
}}
discussionId={'p/d8ex5'}
/>
</div>
</CardWrapper>
</>
);
};

export const WithAVerticalGapWhenBetaContainer = () => {
return (
<>
<CardWrapper>
<div
css={css`
width: 280px;
`}
>
<Card
{...basicCardProps}
containerType={'flexible/special'}
imagePositionOnDesktop="bottom"
format={{
display: ArticleDisplay.Standard,
design: ArticleDesign.Standard,
theme: Pillar.Opinion,
}}
discussionId={'p/d8ex5'}
/>
</div>
</CardWrapper>
</>
);
};

export const WithAVerticalGapWhenScrollableSmallContainer = () => {
return (
<>
<CardWrapper>
<div
css={css`
width: 280px;
`}
>
<Card
{...basicCardProps}
containerType={'scrollable/small'}
imagePositionOnDesktop="bottom"
format={{
display: ArticleDisplay.Standard,
design: ArticleDesign.Standard,
theme: Pillar.Opinion,
}}
discussionId={'p/d8ex5'}
/>
</div>
</CardWrapper>
</>
);
};

0 comments on commit 6c807d6

Please sign in to comment.