[ACS-4307] Label is not persistent as placeholder is being used as the only visual label for a text field (#8213)

* Label is not persistent as placeholder is being used as the only visual label for a text field so added title in from and to form fields

* review comments addressed
This commit is contained in:
Jatin Chugh
2023-02-01 14:28:10 +05:30
committed by GitHub
parent 1f450c0593
commit a720edd2cf
2 changed files with 5 additions and 1 deletions

View File

@@ -260,7 +260,9 @@
"FROM": "From", "FROM": "From",
"TO": "To", "TO": "To",
"FROM-DATE": "From", "FROM-DATE": "From",
"TO-DATE": "To" "TO-DATE": "To",
"SELECT-FROM-DATE": "Select From Date",
"SELECT-TO-DATE": "Select To Date"
}, },
"VALIDATION": { "VALIDATION": {
"REQUIRED-VALUE": "Required value", "REQUIRED-VALUE": "Required value",

View File

@@ -1,5 +1,6 @@
<form [formGroup]="form" novalidate (ngSubmit)="apply(form.value, form.valid)"> <form [formGroup]="form" novalidate (ngSubmit)="apply(form.value, form.valid)">
<mat-form-field> <mat-form-field>
<mat-label>{{ 'SEARCH.FILTER.RANGE.SELECT-FROM-DATE' | translate }}</mat-label>
<input matInput <input matInput
(input)="forcePlaceholder($event)" (input)="forcePlaceholder($event)"
[formControl]="from" [formControl]="from"
@@ -18,6 +19,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-label>{{ 'SEARCH.FILTER.RANGE.SELECT-TO-DATE' | translate }}</mat-label>
<input matInput <input matInput
(input)="forcePlaceholder($event)" (input)="forcePlaceholder($event)"
[formControl]="to" [formControl]="to"