Struggling with changing the background color of a checkbox in a material multiselect.
I've attempted both
.mat-pseudo-checkbox-checked { background-color: #a9a9a9 !important; }
and
:host ::ng-deep .mat-pseudo-checkbox-checked { background-color: #a9a9a9 !important; }
in the component.css without success. I'm hesitant to settle for just
::ng-deep .mat-pseudo-checkbox-checked { background-color: #a9a9a9 !important; }
as it would impact other components. Disabling ViewEncapsulation and modifying main styles.css are not options. Any help is greatly appreciated.
EDIT: Also tried assigning a class to the <mat-select>
itself and using
mat-select.class .mat-pseudo-checkbox-checked { background-color: #a9a9a9 !important: }
in styles.css, but that didn't work either.