Skip to content

Commit

Permalink
fix issue with radio input
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna Letska authored and Hanna Letska committed Nov 30, 2018
1 parent 036cc80 commit 912f822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docz/Input.doc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ import { Input } from '../src';

<Playground>
<Input type="radio" label="Radio Button 1 Long Label With Multiple Lines of Text" id="radio-button-id-1" name="radio-button-name" />
<Input type="radio" label="Radio Button 2" id="radio-button-id-2" name="radio-button-name" />
<Input type="radio" label="Radio Button 3" id="radio-button-id-3" name="radio-button-name" />
<Input type="radio" label="Radio Button 2" id="radio-button-id-2" name="radio-button-name" checked="false" />
<Input type="radio" label="Radio Button 3" id="radio-button-id-3" name="radio-button-name" checked="false" />
</Playground>

## Checkbox Input:

<Playground>
<Input type="checkbox" label="Checkbox 1" id="checkbox-id-1" name="cahckbox-name" />
<Input type="checkbox" label="Checkbox 2 Long Label With Multiple Lines of Text" id="checkbox-id-2" name="cahckbox-name" />
<Input type="checkbox" label="Checkbox 1" id="checkbox-id-1" name="checkbox-name" checked="true" />
<Input type="checkbox" label="Checkbox 2 Long Label With Multiple Lines of Text" id="checkbox-id-2" name="checkbox-name" checked="false" />
</Playground>

## PropTypes:
Expand Down
2 changes: 1 addition & 1 deletion src/elements/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Input = ({
checked={checked}
/>
{label &&
<label htmlFor={other.id}>
<label htmlFor={id}>
{label}
</label>
}
Expand Down

0 comments on commit 912f822

Please sign in to comment.