I have a list of checkboxes that are asign to different departments(every department has it's own color) when box is unchecked only a border is in the color of department when checked backgroud is changed to the asign color
box-shadow works how it should but can not make background to change (stayes blue-ish), this is my code at the moment:
<label class="custom-control custom-checkbox" *ngFor="let department of departments">
<input type="checkbox" class="custom-control-input" [ngStyle]="{'background-color':checked===true? department.color:'white'}">
<span class="custom-control-indicator" [ngStyle]="{'box-shadow': '0 0 1px 1px' + department.color}" > </span>
<span class="custom-control-description text-capitalize">{{department.id}}</span>
</label>