AAE-11810 added conditional class to indicate validation error (#8090)

This commit is contained in:
tomasz hanaj 2023-01-09 12:57:53 +01:00 committed by GitHub
parent 198c230086
commit 10d49f4582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
<div *ngSwitchDefault>
<mat-form-field class="adf-property-field adf-card-textitem-field"
[ngClass]="{ 'adf-property-read-only': !isEditable }"
[ngClass]="{ 'adf-property-read-only': !isEditable,'adf-property-field-has-error': isEditable && hasErrors }"
[floatLabel]="'never'">
<input matInput
*ngIf="!property.multiline"