Category : css

I have a component which has a clarity input element. I want to customize the styling of it to set its background-color based on condition. This is what I have: template <form clrForm style="padding-top: 0;padding-left:0" class="full-width-component"> <clr-input-container class="text-component"> <label>Input</label> <input style="width: 100%" clrInput [(ngModel)]="value" name="name" [disabled]="isDisabled" [class.disabled]="isDisabled"/> </clr-input-container> </form> scss .disabled { background-color: lightgray; } ..

Read more