Skip to content

Commit

Permalink
fix: checkbox disabled 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jikwan0327 committed Nov 2, 2023
1 parent 758856d commit b5397fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@team-return/design-system",
"version": "1.1.6",
"version": "1.1.7",
"repository": {
"type": "git",
"url": "https://github.com/Team-Return/JOBIS-DESIGN-SYSTEM.git"
Expand Down
5 changes: 3 additions & 2 deletions src/components/checkbox/CheckBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface CheckBoxProps

export const CheckBox = ({
className,
disabled = true,
disabled = false,
margin,
children,
...props
Expand Down Expand Up @@ -45,7 +45,8 @@ const _Wrapper = styled.input<CheckBoxProps>`
width: 18px;
height: 18px;
accent-color: #0087ff;
border: 1px solid ${theme.color.gray50};
border: 1px solid
${({ disabled }) => (disabled ? theme.color.gray40 : theme.color.gray50)};
border-radius: 4px;
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
&:checked {
Expand Down

0 comments on commit b5397fe

Please sign in to comment.