@@ -69,11 +69,27 @@ ProgrammaticFocus.parameters = { chromatic: { disableSnapshot: true } };
69
69
70
70
export const Disabled : Story = ( ) => {
71
71
return (
72
- < SplitButton disabled text = "Split button" >
73
- < Button > Button 1</ Button >
74
- < Button > Button 2</ Button >
75
- < Button > Button 3</ Button >
76
- </ SplitButton >
72
+ < >
73
+ < Box mb = { 3 } >
74
+ < SplitButton disabled text = "Split button" >
75
+ < Button > Button 1</ Button >
76
+ < Button > Button 2</ Button >
77
+ < Button > Button 3</ Button >
78
+ </ SplitButton >
79
+ </ Box >
80
+ < Box p = { 2 } width = "298px" backgroundColor = "#000" >
81
+ < SplitButton
82
+ buttonType = "secondary"
83
+ text = "Split button - secondary - white"
84
+ isWhite
85
+ disabled
86
+ >
87
+ < Button > Button 1</ Button >
88
+ < Button > Button 2</ Button >
89
+ < Button > Button 3</ Button >
90
+ </ SplitButton >
91
+ </ Box >
92
+ </ >
77
93
) ;
78
94
} ;
79
95
Disabled . storyName = "Disabled" ;
@@ -93,6 +109,17 @@ export const ButtonTypes: Story = () => {
93
109
</ SplitButton >
94
110
</ Box >
95
111
) ) }
112
+ < Box p = { 2 } width = "298px" backgroundColor = "#000" >
113
+ < SplitButton
114
+ buttonType = "secondary"
115
+ text = "Split button - secondary - white"
116
+ isWhite
117
+ >
118
+ < Button > Button 1</ Button >
119
+ < Button > Button 2</ Button >
120
+ < Button > Button 3</ Button >
121
+ </ SplitButton >
122
+ </ Box >
96
123
</ >
97
124
) ;
98
125
} ;
@@ -220,3 +247,35 @@ export const InOverflowHiddenContainer: Story = () => (
220
247
) ;
221
248
InOverflowHiddenContainer . storyName = "In Overflow Hidden Container" ;
222
249
InOverflowHiddenContainer . parameters = { chromatic : { disableSnapshot : true } } ;
250
+
251
+ export const SecondaryIsWhite : Story = ( ) => {
252
+ return (
253
+ < Box p = { 3 } backgroundColor = "#000" width = "400px" height = "200px" >
254
+ < Box mb = { 3 } >
255
+ < SplitButton
256
+ buttonType = "secondary"
257
+ text = "secondary - white variant"
258
+ isWhite
259
+ >
260
+ < Button > Button 1</ Button >
261
+ < Button > Button 2</ Button >
262
+ < Button > Button 3</ Button >
263
+ </ SplitButton >
264
+ </ Box >
265
+ < Box >
266
+ < SplitButton
267
+ buttonType = "secondary"
268
+ text = "secondary - white variant - disabled"
269
+ isWhite
270
+ disabled
271
+ >
272
+ < Button > Button 1</ Button >
273
+ < Button > Button 2</ Button >
274
+ < Button > Button 3</ Button >
275
+ </ SplitButton >
276
+ </ Box >
277
+ </ Box >
278
+ ) ;
279
+ } ;
280
+ SecondaryIsWhite . storyName = "White variant" ;
281
+ SecondaryIsWhite . parameters = { chromatic : { disableSnapshot : false } } ;
0 commit comments