Skip to content

Commit 51faf9e

Browse files
christophidespPanos Christophides
andauthored
reduce radio button size to 16px from 20px and set a margin-top to align with labels (#444)
Co-authored-by: Panos Christophides <[email protected]>
1 parent 1b0f1e6 commit 51faf9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/radio-button/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const RadioButton = ({
4545
<IconContainer
4646
background={radioStyles.containerColor}
4747
borderColor={radioStyles.borderColor}
48-
margin={children || label ? [0, 2, 0, 0] : null}
48+
margin={children || label ? [0.5, 2, 0, 0] : null}
4949
>
5050
{showIcon && <StyledIcon name="dot" color={radioStyles.dotColor} {...iconProps} />}
5151
</IconContainer>

src/components/radio-button/styled.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export const IconContainer = styled.div`
3535
overflow: hidden;
3636
flex: 0 0 auto;
3737
38-
height: 20px;
39-
width: 20px;
38+
height: 16px;
39+
width: 16px;
4040
4141
box-sizing: border-box;
4242
border: 1px solid ${props => getColor(props.borderColor)(props)};
@@ -47,6 +47,6 @@ export const IconContainer = styled.div`
4747
`
4848
export const StyledIcon = styled(Icon)`
4949
fill: ${props => getColor(props.color)(props)};
50-
height: 10px;
51-
width: 10px;
50+
height: 8px;
51+
width: 8px;
5252
`

0 commit comments

Comments
 (0)