Skip to content

Commit f265146

Browse files
committed
Fixed disabled state of checkbox.
1 parent ec05506 commit f265146

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/checkbox/styled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const CheckboxContainer = styled.div`
1616
export const StyledIcon = styled(Icon)`
1717
flex-grow: 0;
1818
flex-shrink: 0;
19-
fill: ${getValidatedControlColor("primary")};
19+
fill: ${getValidatedControlColor("primary", "accent")};
2020
`
2121

2222
export const HiddenCheckboxInput = styled.input.attrs({

src/theme/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export const getGutterHeight = ({ theme }) => {
4747

4848
export const getValidatedControlColor = (
4949
defaultColorPath = "border",
50-
defaultDisabledPAth = "disabled"
50+
defaultDisabledPath = "disabled"
5151
) => ({ theme, success, error, disabled }) => {
5252
if (success) return getColor(["success"])({ theme })
5353
if (error) return getColor(["error"])({ theme })
54-
if (disabled) return getColor([defaultDisabledPAth])({ theme })
54+
if (disabled) return getColor([defaultDisabledPath])({ theme })
5555
return getColor([defaultColorPath])({ theme })
5656
}

0 commit comments

Comments
 (0)