Skip to content

Commit a51a490

Browse files
author
Melissa Thompson
committed
docs(opacitycheckerboard): chromatic coverage for t-shirt size
1 parent 5167768 commit a51a490

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
@@ -48,21 +48,41 @@ export default {
4848
(Story, context) => html`<div style=${styleMap({ inlineSize: "100px", blockSize: "100px" })}>${Story(context)}</div>`
4949
],
5050
};
51-
export const Default = Template.bind({});
52-
Default.args = {
53-
customStyles: {
54-
"inline-size": "100%",
55-
"block-size": "100%"
56-
}
57-
};
5851

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

0 commit comments

Comments
 (0)