Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
update storybook stories to use <option value="">
Browse files Browse the repository at this point in the history
  • Loading branch information
justinanastos committed Nov 24, 2020
1 parent 941ae2c commit dcc9cf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/Select/Select.story.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ You must use the same `<option>` and `<optgroup>` elements you would use for a n
/>
</Story>
<Story name="basic optgroup">
<Select label={<>select an item</>}>
<Select>
<option value="">select an item</option>
<optgroup label="Group of options">
<option value="value a">a</option>
<option value="value b">b</option>
Expand All @@ -74,7 +75,8 @@ You must use the same `<option>` and `<optgroup>` elements you would use for a n
</Select>
</Story>
<Story name="disabled">
<Select label="disabled" disabled>
<Select disabled>
<option value="">select an item</option>
<option value="value a">a</option>
<option value="value b">b</option>
</Select>
Expand All @@ -97,15 +99,17 @@ Selects can be displayed using any of the `feel` values from `Button`.

<Canvas>
<Story name="feel raised">
<Select label={<>select an item</>} feel="raised">
<Select feel="raised">
<option value="">select an item</option>
<option>a</option>
<optgroup label="header 1">
<option>b</option>
</optgroup>
</Select>
</Story>
<Story name="feel flat">
<Select label={<>select an item</>} feel="flat">
<Select feel="flat">
<option value="">select an item</option>
<option>a</option>
<optgroup label="header 1">
<option>b</option>
Expand Down
2 changes: 1 addition & 1 deletion src/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ interface Props

export const Select: React.FC<Props> = ({
children,
initialValue,
initialValue = "",
disabled = false,
feel,
labelPropsCallbackRef,
Expand Down

0 comments on commit dcc9cf5

Please sign in to comment.