Skip to content

Commit

Permalink
feat(react): replace disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
naporin0624 committed Aug 16, 2023
1 parent 64ea1c1 commit 0412113
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`using dark theme storiesOf(index.story.tsx).add(Labelled) snapshot 1`]
}
.c0:disabled,
.c0[aria-disabled]:not([aria-disabled=false]) {
.c0[aria-disabled]:not([aria-disabled='false']) {
opacity: 0.32;
}
Expand Down Expand Up @@ -245,7 +245,7 @@ exports[`using dark theme storiesOf(index.story.tsx).add(Unlabelled) snapshot 1`
}
.c0:disabled,
.c0[aria-disabled]:not([aria-disabled=false]) {
.c0[aria-disabled]:not([aria-disabled='false']) {
opacity: 0.32;
}
Expand Down Expand Up @@ -398,7 +398,7 @@ exports[`using light theme storiesOf(index.story.tsx).add(Labelled) snapshot 1`]
}
.c0:disabled,
.c0[aria-disabled]:not([aria-disabled=false]) {
.c0[aria-disabled]:not([aria-disabled='false']) {
opacity: 0.32;
}
Expand Down Expand Up @@ -626,7 +626,7 @@ exports[`using light theme storiesOf(index.story.tsx).add(Unlabelled) snapshot 1
}
.c0:disabled,
.c0[aria-disabled]:not([aria-disabled=false]) {
.c0[aria-disabled]:not([aria-disabled='false']) {
opacity: 0.32;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/react/src/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ const InputRoot = styled.label`
}
gap: 4px;
${theme((o) => [o.disabled])}
&:disabled,
&[aria-disabled]:not([aria-disabled='false']) {
opacity: 0.32;
}
`

const CheckboxRoot = styled.div`
Expand Down

0 comments on commit 0412113

Please sign in to comment.