Skip to content
Snippets Groups Projects
Unverified Commit 06331872 authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

unbounce the checkbox (#23321)

parent da7582a2
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@ import {
CheckBoxLabelProps,
} from "./types";
import { DEFAULT_ICON_PADDING } from "./constants";
export const CheckBoxRoot = styled.label`
display: block;
position: relative;
......@@ -47,6 +49,7 @@ export const CheckBoxContainer = styled.span<CheckBoxContainerProps>`
export const CheckBoxIcon = styled(Icon)<CheckBoxIconProps>`
display: block;
padding: ${DEFAULT_ICON_PADDING / 2}px;
color: ${props => color(props.checked ? "white" : props.uncheckedColor)};
width: ${props => `${props.size}px`};
height: ${props => `${props.size}px`};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment