Skip to content

Commit

Permalink
Prevent squished radio buttons (#76)
Browse files Browse the repository at this point in the history
* Prevent squished radio buttons

* Apply flex style only where necessary
  • Loading branch information
Jessica Wray authored Nov 10, 2020
1 parent 7fdd771 commit 2c10951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RadioButton/RadioButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const RadioButton = ( {
<label className={cx( 'container', display )}>
<input
checked={checked}
className={cx( 'input' )}
className={cx( 'input', display )}
disabled={disabled}
name={name}
onChange={onChange}
Expand Down
4 changes: 4 additions & 0 deletions src/components/RadioButton/RadioButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
transition: border-color tokens.$time-slowly;
background-color: color-scheme.$background-2;

&.block {
flex-shrink: 0;
}

&:focus,
&:hover,
.container:focus,
Expand Down

0 comments on commit 2c10951

Please sign in to comment.