Is it possible to apply the ng deep css class to only one specific checkbox in my component, rather than all checkboxes?
I want to customize just one checkbox and leave the others unchanged. How can this be achieved? Thank you.
I need the CSS modification to target a single checkbox among five different ones in my component.
For example, if there are two checkboxes below, the styling should only affect the first checkbox and not the second one.
#checkbox code
<mat-checkbox
*ngIf="currentSelectedTenants(subtenant) else currentSubtenants"
color="accent"
[(ngModel)]="dealDispositionFormFields.currentSubtenants"
[checked]="currentSelectedTenants(subtenant)"
(change)="changeCurrentSubtenants($event,subtenant)"
style="margin-left:10px;">
<mat-label class="alter-text-color" style="font-size: 12px;">{{subtenant.subtenantName}}</mat-label>
</mat-checkbox>
<mat-checkbox
*ngIf="currentSelectedTenants(subtenant) else currentSubtenants"
color="accent"
[(ngModel)]="dealDispositionFormFields.notCurrentSubtenant"
[checked]="currentSelectedTenants(subtenant)"
(change)="changeCurrentSubtenants($event,subtenant)"
style="margin-left:10px;">
<mat-label class="alter-text-color" style="font-size: 12px;">{{subtenant.subtenantName}}</mat-label>
</mat-checkbox>
#css
::ng-deep .mat-checkbox-checkmark-path {
stroke:rgba(0, 125, 255, 1) !important;
}