Skip to content

Commit e0d08b5

Browse files
committed
fixup! Feat(web-react): Add background gradient prop to Box component #DS-1887
1 parent dcf1f73 commit e0d08b5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/web-react/src/components/Box/stories/Box.stories.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const meta: Meta<typeof Box> = {
8080
},
8181
borderWidth: {
8282
control: 'select',
83-
options: Object.values(BorderWidths),
83+
options: [...Object.values(BorderWidths), undefined],
8484
table: {
8585
type: {
8686
summary: 'BorderWidthsDictionaryType',
@@ -94,14 +94,15 @@ const meta: Meta<typeof Box> = {
9494
control: 'select',
9595
options: Object.values(BorderStyles),
9696
table: {
97+
defaultValue: { summary: BorderStyles.SOLID },
9798
type: {
9899
summary: 'BorderStylesDictionaryType',
99100
},
100101
},
101102
},
102103
borderColor: {
103104
control: 'select',
104-
options: Object.values(BorderColors),
105+
options: [...Object.values(BorderColors), undefined],
105106
table: {
106107
type: {
107108
summary: 'BorderColorsDictionaryType',
@@ -110,7 +111,7 @@ const meta: Meta<typeof Box> = {
110111
},
111112
backgroundColor: {
112113
control: 'select',
113-
options: Object.values(BackgroundColors),
114+
options: [...Object.values(BackgroundColors), undefined],
114115
table: {
115116
type: {
116117
summary: 'BackgroundColorsDictionaryType',
@@ -119,7 +120,7 @@ const meta: Meta<typeof Box> = {
119120
},
120121
backgroundGradient: {
121122
control: 'select',
122-
options: Object.values(BackgroundGradients),
123+
options: [...Object.values(BackgroundGradients), undefined],
123124
table: {
124125
type: {
125126
summary: 'BackgroundGradientsDictionaryType',
@@ -137,8 +138,8 @@ const meta: Meta<typeof Box> = {
137138
tablet: '200',
138139
desktop: '400',
139140
},
140-
borderColor: 'basic',
141-
backgroundColor: 'primary',
141+
borderColor: undefined,
142+
backgroundColor: undefined,
142143
},
143144
};
144145

0 commit comments

Comments
 (0)