skip to Main Content

Javascript – Propagate invalid state to custom form control

in my app iam using my custom datetime picker(it consists of text input and material datepicker)- code looks like this: <div fxLayoutAlign="center center" fxLayoutGap="10px" [formGroup]="form"> <mat-form-field appearance="outline" class="no-padding no-underline" [class.mat-form-field-invalid]="control?.invalid&&!control.hasError('badTime')" [class.ng-invalid]="control?.invalid&&!control.hasError('badTime')"> <mat-label>{{label}}</mat-label> <input matInput [matDatepicker]="picker" [max]="max" [min]="min" (dateChange)="changeDate($event)" readonly formControlName="date"…

VIEW QUESTION

Css – How can I change the label font-size of an Angular mat-checkbox component?

I'm attempting to change the fontsize of mat-checkbox's label. Nothing I seem to attempt works as it's consistently being overriden by the component's default styles: !important ::ng-deep Setting global style in styles.scss <mat-checkbox [(ngModel)]="reportOption.AllSelected" *ngIf="reportOption.SelectAll" (change)="onSelectAllChange($event, reportOption)" style="margin-left:5px;" class="custom-checkbox">Select All</mat-checkbox>…

VIEW QUESTION

Angular material themes with css variables

I have in my project css variables like below: :root { --color-primary: #65A518; --color-primary-hover: #558817; --color-primary-dark: #006729; --color-white: #FFFFFF; } but now I have to add angular material and custom themes. I read that I need create my custom palette…

VIEW QUESTION
Back To Top
Search