Skip to content

Commit 4818f81

Browse files
add some chromatic modes with dark mode also
1 parent 3299adf commit 4818f81

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Meta, StoryObj } from '@storybook/react-webpack5';
22
import { centreColumnDecorator } from '../../.storybook/decorators/gridDecorators';
3+
import { allModes } from '../../.storybook/modes';
34
import { exampleProduct } from '../../fixtures/manual/productBlockElement';
45
import { ArticleDesign, ArticleDisplay, Pillar } from '../lib/articleFormat';
56
import { HorizontalSummaryProductCard } from './HorizontalSummaryProductCard';
@@ -15,6 +16,14 @@ const meta = {
1516
theme: Pillar.Lifestyle,
1617
},
1718
},
19+
parameters: {
20+
chromatic: {
21+
modes: {
22+
'vertical mobile': allModes['vertical mobile'],
23+
'vertical wide': allModes['vertical wide'],
24+
},
25+
},
26+
},
1827
decorators: [centreColumnDecorator],
1928
} satisfies Meta<typeof HorizontalSummaryProductCard>;
2029

0 commit comments

Comments
 (0)