Skip to content

Commit

Permalink
fix(label): use dark color for checkbox and radio (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedMok committed Feb 22, 2023
1 parent 5765a10 commit c3aa4ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
37 changes: 21 additions & 16 deletions packages/styles/components/_c.checkbox.scss
Expand Up @@ -12,6 +12,7 @@

cursor: pointer;
margin-left: magic-unit-rem(0.5, true);
color: $color-font-darkest;
}

&__input {
Expand Down Expand Up @@ -63,10 +64,11 @@
}

&:checked {
background-image: url(inline-icons(
"checkmark-16",
$color-input-checked-icon
));
background-image: url(
inline-icons(
"checkmark-16",
$color-input-checked-icon
));
background-position: center center;

&::-ms-check {
Expand All @@ -84,10 +86,11 @@
}

&:indeterminate {
background-image: url(inline-icons(
"control-less-16",
$color-input-checked-icon
));
background-image: url(
inline-icons(
"control-less-16",
$color-input-checked-icon
));
}

&:disabled {
Expand All @@ -101,17 +104,19 @@
}

&:checked {
background-image: url(inline-icons(
"checkmark-16",
$color-input-disabled-icon
));
background-image: url(
inline-icons(
"checkmark-16",
$color-input-disabled-icon
));
}

&:indeterminate {
background-image: url(inline-icons(
"control-less-16",
$color-input-disabled-icon
));
background-image: url(
inline-icons(
"control-less-16",
$color-input-disabled-icon
));
}

& + #{$parent}__label {
Expand Down
1 change: 1 addition & 0 deletions packages/styles/components/_c.radio.scss
Expand Up @@ -12,6 +12,7 @@

cursor: pointer;
margin-left: magic-unit-rem(0.5, true);
color: $color-font-darkest;
}

&__input {
Expand Down

0 comments on commit c3aa4ee

Please sign in to comment.