Skip to content

Commit

Permalink
fix(radio): no margin if no label
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Aug 17, 2020
1 parent 4d48cff commit 5cae414
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Radio/Radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Radio extends Component {
.icon {
pointer-events: none;
user-select: none;
margin-right: 5px;
margin-right: ${label ? '5px' : 0};
border: 2px solid transparent;
padding: 1px;
border-radius: 50%;
Expand Down
10 changes: 10 additions & 0 deletions packages/core/src/Radio/Radio.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,13 @@ storiesOf('Radio', module)
onBlur={onBlur}
/>
))
.add('No Label', () => (
<Radio
name="Ex"
value="with-help"
onChange={onChange}
onFocus={onFocus}
onBlur={onBlur}
className="some-name"
/>
))

0 comments on commit 5cae414

Please sign in to comment.