web: components: RadioButton: fixed

This commit is contained in:
Daniil Senkiv 2019-08-02 17:33:23 +03:00
parent 52e88db947
commit ae413c3c72

View File

@ -59,8 +59,8 @@ const TextBody = ({ isDisabled, ...props }) => <Text.Body {...props} />;
const StyledText = styled(TextBody)`
color: ${props => props.isDisabled ? disableColor : activeColor};
`;
const StyledSpan = styled.span`
const ClearSpan = ({ spacing, ...props }) => <span {...props}></span>;
const StyledSpan = styled(ClearSpan)`
&:not(:first-child) {
margin-left: ${props => props.spacing}px;
}