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 @@ -48,21 +48,41 @@ export default {
48
48
( Story , context ) => html `< div style =${ styleMap ( { inlineSize : "100px" , blockSize : "100px" } ) } > ${ Story ( context ) } </ div > `
49
49
] ,
50
50
} ;
51
- export const Default = Template . bind ( { } ) ;
52
- Default . args = {
53
- customStyles : {
54
- "inline-size" : "100%" ,
55
- "block-size" : "100%"
56
- }
57
- } ;
58
51
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 ( { } ) ;
60
84
CheckerboardPosition . args = {
61
85
backgroundPosition : 'center center' ,
62
- customStyles : {
63
- "inline-size" : "100%" ,
64
- "block-size" : "100%"
65
- }
66
86
} ;
67
87
CheckerboardPosition . parameters = {
68
88
docs : {
You can’t perform that action at this time.
0 commit comments