Skip to content

Commit 1dc3476

Browse files
committed
Add more viewports to Scrollable Highlights stories
1 parent 052a7a8 commit 1dc3476

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { breakpoints } from '@guardian/source/foundations';
12
import type { Meta, StoryObj } from '@storybook/react';
23
import { defaultCard, trails } from '../../fixtures/manual/highlights-trails';
34
import { ScrollableHighlights } from './ScrollableHighlights.importable';
@@ -6,6 +7,16 @@ import { Section } from './Section';
67
const meta: Meta<typeof ScrollableHighlights> = {
78
title: 'Components/Masthead/ScrollableHighlights',
89
component: ScrollableHighlights,
10+
parameters: {
11+
chromatic: {
12+
viewports: [
13+
breakpoints.mobile,
14+
breakpoints.mobileLandscape,
15+
breakpoints.tablet,
16+
breakpoints.wide,
17+
],
18+
},
19+
},
920
render: ({ ...args }) => (
1021
<Section
1122
shouldCenter={true}

0 commit comments

Comments
 (0)