File tree 1 file changed +25
-0
lines changed
components/switch/stories
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,31 @@ WithForcedColors.parameters = {
62
62
forcedColors : "active" ,
63
63
modes : disableDefaultModes
64
64
} ,
65
+ decorators : [
66
+ ( Story , context ) => html `
67
+ < style >
68
+ .spectrum-Detail { display : inline-block; }
69
+ .spectrum-Typography > div {
70
+ border : 1px solid var (--spectrum-gray-200 );
71
+ border-radius : 4px ;
72
+ padding : 0 1em 1em ;
73
+ /* Why seafoam? Because it separates it from the component styles. */
74
+ --mod-detail-font-color : var (--spectrum-seafoam-900 );
75
+ }
76
+ </ style >
77
+ < div
78
+ style =${ styleMap ( {
79
+ display : "flex" ,
80
+ flexDirection : "column" ,
81
+ alignItems : "flex-start" ,
82
+ gap : "1rem" ,
83
+ "--mod-detail-margin-end" : ".3rem" ,
84
+ } ) }
85
+ >
86
+ ${ Story ( context ) }
87
+ </ div >
88
+ ` ,
89
+ ] ,
65
90
} ;
66
91
67
92
// ********* DOCS ONLY ********* //
You can’t perform that action at this time.
0 commit comments