chore: keep checkbox size consistent

This commit is contained in:
jinhojang6 2024-10-03 23:34:22 +09:00
parent acd6616133
commit b345e5659f
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
1 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,8 @@ const HiddenCheckbox = styled.input`
opacity: 0;
height: 0;
width: 0;
width: 14px;
height: 14px;
cursor: pointer;
`
@ -45,9 +47,10 @@ const StyledCheckbox = styled.span<{ isChecked: boolean }>`
align-items: center;
justify-content: center;
border: 1px solid white;
width: 18px;
height: 18px;
width: 14px;
height: 14px;
background-color: ${({ isChecked }) => (isChecked ? 'white' : 'black')};
flex-shrink: 0;
position: relative;
margin-right: 10px;
`