Skip to content

Commit 251516b

Browse files
committed
add light wide mode for gallery layout stories
1 parent c847f05 commit 251516b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

dotcom-rendering/.storybook/modes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ export const allModes = {
6969
globalColourScheme: 'light',
7070
viewport: breakpoints.leftCol,
7171
},
72+
'light wide': {
73+
globalColourScheme: 'light',
74+
viewport: breakpoints.wide,
75+
},
7276
};

dotcom-rendering/src/layouts/GalleryLayout.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Meta, StoryObj } from '@storybook/react';
2+
import { allModes } from '../../.storybook/modes';
23
import { Gallery as GalleryFixture } from '../../fixtures/generated/fe-articles/Gallery';
34
import { WithBranding } from '../components/ArticleMeta.web.stories';
45
import { ArticleDesign } from '../lib/articleFormat';
@@ -10,6 +11,13 @@ import { GalleryLayout } from './GalleryLayout';
1011
const meta = {
1112
title: 'Layouts/Gallery',
1213
component: GalleryLayout,
14+
parameters: {
15+
chromatic: {
16+
modes: {
17+
'light wide': allModes['light wide'],
18+
},
19+
},
20+
},
1321
} satisfies Meta<typeof GalleryLayout>;
1422

1523
export default meta;

0 commit comments

Comments
 (0)