Skip to content

Commit

Permalink
fix: ensure correct checkbox check mark color (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Kimmich <[email protected]>
  • Loading branch information
json-derulo and json-derulo authored Oct 24, 2023
1 parent e2321f5 commit 578d2d6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions projects/material-css-vars/src/lib/_mat-lib-overwrites.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,17 @@
$color-warn: public-util.mat-css-color(500, null, "warn", true);

.mat-mdc-checkbox {
&.mat-primary {
--mdc-checkbox-selected-checkmark-color: #{$color-primary};
}
&.mat-accent {
--mdc-checkbox-selected-checkmark-color: #{$color-accent};
}
&.mat-warn {
--mdc-checkbox-selected-checkmark-color: #{$color-warn};
&,
#{variables.$dark-theme-selector} & {
&.mat-primary {
--mdc-checkbox-selected-checkmark-color: #{$color-primary};
}
&.mat-accent {
--mdc-checkbox-selected-checkmark-color: #{$color-accent};
}
&.mat-warn {
--mdc-checkbox-selected-checkmark-color: #{$color-warn};
}
}
}
}
Expand Down

0 comments on commit 578d2d6

Please sign in to comment.