Skip to content

Commit 50ea04f

Browse files
authored
Merge pull request #14586 from guardian/add-more-breakpoints-for-card-story
Add chromatic tablet and desktop viewports for a card story
2 parents dd384d5 + 246140d commit 50ea04f

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)