chore: keep checkbox size consistent
This commit is contained in:
parent
acd6616133
commit
b345e5659f
|
@ -37,6 +37,8 @@ const HiddenCheckbox = styled.input`
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
@ -45,9 +47,10 @@ const StyledCheckbox = styled.span<{ isChecked: boolean }>`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
width: 18px;
|
width: 14px;
|
||||||
height: 18px;
|
height: 14px;
|
||||||
background-color: ${({ isChecked }) => (isChecked ? 'white' : 'black')};
|
background-color: ${({ isChecked }) => (isChecked ? 'white' : 'black')};
|
||||||
|
flex-shrink: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue