Skip to content

Commit

Permalink
style: use theme variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ehoops-zz committed Nov 29, 2023
1 parent 26441e7 commit 7a3a653
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/components/src/core/InputCheckbox/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { fontBodyXxs } from "../styles";
import {
CommonThemeProps,
getColors,
getCorners,
getIconSizes,
getSpaces,
getTypography,
} from "../styles/common/selectors/theme";

Expand Down Expand Up @@ -43,7 +45,9 @@ export const StyledFormControlLabel = styled(RawFormControlLabel)`
export const StyledCheckbox = styled(RawCheckbox)`
${(props) => {
const colors = getColors(props);
const corners = getCorners(props);
const iconSizes = getIconSizes(props);
const spaces = getSpaces(props);
return `
color: ${colors?.gray[400]};
&:hover {
Expand All @@ -69,8 +73,8 @@ export const StyledCheckbox = styled(RawCheckbox)`
outline: 5px auto Highlight;
outline: 5px auto -webkit-focus-ring-color;
}
border-radius: 2px;
padding: 4px;
border-radius: ${corners?.s}px;
padding: ${spaces?.xxs}px;
margin: 3px;
}
Expand Down

0 comments on commit 7a3a653

Please sign in to comment.