Skip to content

Commit

Permalink
segmented control storybook updates (#2343)
Browse files Browse the repository at this point in the history
* update segmented control

* changeset
  • Loading branch information
shaneeza authored May 22, 2024
1 parent 3b86b3b commit e31fb71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-hotels-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/segmented-control': patch
---

Update `Size` control in storybook
6 changes: 2 additions & 4 deletions packages/segmented-control/src/SegmentedControl.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ const meta: StoryMetaType<typeof SegmentedControl> = {
followFocus: { control: 'boolean' },
'aria-controls': { control: 'text' },
size: {
control: {
type: 'radio',
options: [...Object.values(Size)],
},
control: 'select',
options: Object.values(Size),
},
darkMode: storybookArgTypes.darkMode,
baseFontSize: storybookArgTypes.updatedBaseFontSize,
Expand Down

0 comments on commit e31fb71

Please sign in to comment.