Skip to content

Commit

Permalink
fix(checkbox): change the bg semantic color token (#454)
Browse files Browse the repository at this point in the history
Co-authored-by: Ján Hamara <jan.hamara@free-now.com>
  • Loading branch information
JanHamara and Ján Hamara authored May 31, 2024
1 parent 2787ca0 commit b873693
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Checkbox/components/Checkmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ const Checkmark = styled.input<CheckmarkProps>`
&:disabled {
cursor: not-allowed;
background-color: ${getSemanticValue('background-element-disabled-faded')};
background-color: ${getSemanticValue('background-element-disabled-default')};
box-shadow: inset 0 0 0 0.125rem ${getSemanticValue('transparent')};
&:hover {
box-shadow: inset 0 0 0 0.125rem ${getSemanticValue('transparent')};
}
&:active {
background-color: ${getSemanticValue('background-element-disabled-faded')};
background-color: ${getSemanticValue('background-element-disabled-default')};
}
}
`;
Expand Down
7 changes: 7 additions & 0 deletions src/components/Checkbox/docs/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const Disabled: Story = {
}
};

export const DisabledChecked: Story = {
args: {
disabled: true,
defaultChecked: true
}
};

export const Indeterminate: Story = {
args: {
indeterminate: true
Expand Down

0 comments on commit b873693

Please sign in to comment.