File tree Expand file tree Collapse file tree 1 file changed +32
-12
lines changed
components/opacitycheckerboard/stories Expand file tree Collapse file tree 1 file changed +32
-12
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,41 @@ export default {
46
46
( Story , context ) => html `< div style =${ styleMap ( { inlineSize : "100px" , blockSize : "100px" } ) } > ${ Story ( context ) } </ div > `
47
47
] ,
48
48
} ;
49
- export const Default = Template . bind ( { } ) ;
50
- Default . args = {
51
- customStyles : {
52
- "inline-size" : "100%" ,
53
- "block-size" : "100%"
54
- }
55
- } ;
56
49
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 ( { } ) ;
58
82
CheckerboardPosition . args = {
59
83
backgroundPosition : "center center" ,
60
- customStyles : {
61
- "inline-size" : "100%" ,
62
- "block-size" : "100%"
63
- }
64
84
} ;
65
85
CheckerboardPosition . parameters = {
66
86
docs : {
You can’t perform that action at this time.
0 commit comments