We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aabc264 + edfd077 commit 2fb36bbCopy full SHA for 2fb36bb
src/assets/svgs/form/checkmark.svg
src/lib/form/checkbox.tsx
@@ -58,15 +58,19 @@ const StyledCheckmark = styled(CheckmarkIcon)<
58
`}
59
60
${({ theme, checked }) =>
61
- checked &&
62
- css`
63
- background: ${theme.klerosUIComponentsPrimaryBlue};
64
- border: none;
+ checked
+ ? css`
+ fill: ${({ theme }) => theme.klerosUIComponentsWhiteBackground};
+ background: ${theme.klerosUIComponentsPrimaryBlue};
65
+ border: none;
66
- :after {
67
- display: block;
68
- }
69
- `}
+ :after {
+ display: block;
+ }
70
+ `
71
+ : css`
72
+ fill: transparent;
73
+ `}
74
`;
75
76
interface CheckboxProps
0 commit comments