Skip to content

Commit f1dfcc9

Browse files
Melissa Thompsoncastastrophe
authored andcommitted
docs(opacitycheckerboard): chromatic coverage for t-shirt size
1 parent e994bef commit f1dfcc9

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

components/opacitycheckerboard/stories/opacitycheckerboard.stories.js

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,41 @@ export default {
4646
(Story, context) => html`<div style=${styleMap({ inlineSize: "100px", blockSize: "100px" })}>${Story(context)}</div>`
4747
],
4848
};
49-
export const Default = Template.bind({});
50-
Default.args = {
51-
customStyles: {
52-
"inline-size": "100%",
53-
"block-size": "100%"
54-
}
55-
};
5649

57-
export const CheckerboardPosition = Template.bind({});
50+
const CheckerboardDefault = (args) => html`
51+
${window.isChromatic() ? html`
52+
${Template({
53+
...args,
54+
customStyles: {
55+
"inline-size": "100%",
56+
"block-size": "100%"
57+
}
58+
})}
59+
<br>
60+
${Template({
61+
...args,
62+
customStyles: {
63+
"inline-size": "100%",
64+
"block-size": "100%"
65+
},
66+
size: "s",
67+
})}
68+
` : Template({
69+
...args,
70+
customStyles: {
71+
"inline-size": "100%",
72+
"block-size": "100%"
73+
}
74+
})}
75+
`;
76+
77+
78+
export const Default = CheckerboardDefault.bind({});
79+
Default.args = {};
80+
81+
export const CheckerboardPosition = CheckerboardDefault.bind({});
5882
CheckerboardPosition.args = {
5983
backgroundPosition: "center center",
60-
customStyles: {
61-
"inline-size": "100%",
62-
"block-size": "100%"
63-
}
6484
};
6585
CheckerboardPosition.parameters = {
6686
docs: {

0 commit comments

Comments
 (0)