Skip to content

Commit f89a1b4

Browse files
authored
Fix Button CSF story defaults (#4495)
1 parent 91cc3c6 commit f89a1b4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/@react-spectrum/button/stories/Button.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export default {
5252
},
5353
variant: {
5454
control: 'select',
55-
options: ['accent', 'primary', 'secondary', 'negative', 'cta', 'overBackground']
55+
options: ['accent', 'primary', 'secondary', 'negative', 'cta', 'overBackground'],
56+
defaultValue: 'accent'
5657
},
5758
style: {
5859
control: 'select',

packages/@react-spectrum/button/stories/LogicButton.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export default {
4646
},
4747
variant: {
4848
control: 'select',
49-
options: ['and', 'or']
49+
options: ['and', 'or'],
50+
defaultValue: 'and'
5051
}
5152
}
5253
} as ComponentMeta<typeof LogicButton>;

0 commit comments

Comments
 (0)