Skip to content

Commit

Permalink
fix(Checkbox): fix design discrepancies in border width and radius
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Dec 21, 2021
1 parent 1f2b1db commit 24b9af2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/orbit-components/src/Checkbox/index.jsx
Expand Up @@ -78,7 +78,7 @@ const IconContainer = styled.div`
checked ? theme.orbit.paletteBlueDark : theme.orbit.backgroundInput};
}
${media.tablet(css`
${media.desktop(css`
border-radius: ${({ theme }) => theme.orbit.borderRadiusNormal};
`)}
`;
Expand Down Expand Up @@ -182,7 +182,7 @@ export const Label: any = styled(({ className, children, dataTest }) => (
${IconContainer} {
color: ${getToken(TOKENS.iconColor)};
border: 2px solid ${getToken(TOKENS.borderColor)};
border: 1px solid ${getToken(TOKENS.borderColor)};
}
&:hover ${IconContainer} {
Expand All @@ -197,12 +197,6 @@ export const Label: any = styled(({ className, children, dataTest }) => (
transform: ${({ disabled, theme }) =>
!disabled && `scale(${theme.orbit.modifierScaleCheckboxRadioActive})`};
}
${media.largeMobile(css`
${IconContainer} {
border-width: 1px;
}
`)};
`;

// $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
Expand Down

0 comments on commit 24b9af2

Please sign in to comment.