Skip to content

Commit

Permalink
fix: adding labels in combo box (default combo box, with default valu…
Browse files Browse the repository at this point in the history
…e) (#2636)
  • Loading branch information
m7adeel authored Nov 3, 2023
1 parent 57e8f34 commit 7714d14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/forms/ComboBox/ComboBox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const defaultComboBoxWithPropOptions = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="input-ComboBox">Select a fruit</Label>
<ComboBox
id="input-ComboBox"
name="input-ComboBox"
Expand All @@ -53,6 +54,7 @@ export const withDefaultValue = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="input-ComboBox">Select a fruit</Label>
<ComboBox
id="input-ComboBox"
name="input-ComboBox"
Expand Down Expand Up @@ -92,7 +94,7 @@ export const disabled = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="fruit">Select a Fruit</Label>
<Label htmlFor="fruit">Select a fruit</Label>
<ComboBox
id="fruit"
name="fruit"
Expand All @@ -112,7 +114,7 @@ export const withOtherFields = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="fruit">Select a Fruit</Label>
<Label htmlFor="fruit">Select a fruit</Label>
<ComboBox id="fruit" name="fruit" options={fruitList} onChange={noop} />
<Label htmlFor="fruitDescription">Description</Label>
<TextInput id="fruitDescription" name="fruitDescription" type="text" />
Expand All @@ -133,7 +135,7 @@ export const exposedRefMethods = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="fruit">Select a Fruit</Label>
<Label htmlFor="fruit">Select a fruit</Label>
<ComboBox
id="fruit"
name="fruit"
Expand Down Expand Up @@ -176,7 +178,7 @@ export const customInputChangeHandler = (): React.ReactElement => {

return (
<Form onSubmit={noop}>
<Label htmlFor="fruit">Select a Fruit</Label>
<Label htmlFor="fruit">Select a fruit</Label>
<ComboBox
id="fruit"
name="fruit"
Expand Down

0 comments on commit 7714d14

Please sign in to comment.