Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 9cd2ec3

Browse files
committed
Fix checkbox disabled
Signed-off-by: soupette <cyril.lpz@gmail.com>
1 parent e952530 commit 9cd2ec3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/buffetjs-styles/src/components/Checkbox/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ const Checkbox = styled.input`
7171
&:disabled {
7272
background-color: ${colors.greyIconBkgd};
7373
cursor: initial;
74+
&:after {
75+
color: ${colors.brightGrey};
76+
}
7477
}
7578
& + label {
7679
display: inline-block;

packages/buffetjs-styles/src/components/Checkbox/tests/__snapshots__/Checkbox.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ exports[`<Checkbox /> should match snapshot 1`] = `
5353
cursor: initial;
5454
}
5555
56+
.c0:disabled:after {
57+
color: #9ea7b8;
58+
}
59+
5660
.c0 + label {
5761
display: inline-block;
5862
font-weight: 500;

0 commit comments

Comments
 (0)