Skip to content

Commit 246140d

Browse files
marjisoundarelra
andcommitted
Add chromatic tablet and desktop viewports for a card story
This is to capture the hiding behaviour of trail text for tablet and desktop breakpoints Co-authored-by: Ravi <[email protected]>
1 parent dd384d5 commit 246140d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dotcom-rendering/src/components/Card/Card.stories.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,20 @@ export const WithDifferentImagePositions = () => {
483483
);
484484
};
485485

486+
WithDifferentImagePositions.story = {
487+
parameters: {
488+
viewport: { defaultViewport: 'desktop' },
489+
chromatic: {
490+
viewports: [
491+
breakpoints.mobile,
492+
breakpoints.tablet,
493+
breakpoints.desktop,
494+
breakpoints.wide,
495+
],
496+
},
497+
},
498+
};
499+
486500
export const WithDifferentImageSizes = () => {
487501
return (
488502
<>

0 commit comments

Comments
 (0)