Skip to content

Commit

Permalink
fix(multiple): add missing aria labels in form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
trik committed Oct 12, 2021
1 parent ba0e05a commit 619c95d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/ionic/forms/date-input-field.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ion-input
type="date"
*ngIf="control|async as ctrl"
[attr.aria-label]="instance|ajfNodeCompleteName"
[min]="instance.node.minDate|ajfDateValueString"
[max]="instance.node.maxDate|ajfDateValueString"
(ionChange)="onChange($event)"
Expand Down
2 changes: 1 addition & 1 deletion src/ionic/forms/number-field.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ion-input [ngModel]="value|async" (ngModelChange)="setValue($event)"></ion-input>
<ion-input aria-label="" [ngModel]="value|async" (ngModelChange)="setValue($event)"></ion-input>
2 changes: 1 addition & 1 deletion src/material/forms/date-input-field.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mat-form-field *ngIf="control|async as ctrl">
<input matInput type="date"
[attr.aria-label]="instance.node.label || (instance|ajfNodeCompleteName)"
[attr.aria-label]="instance|ajfNodeCompleteName"
[min]="instance.node.minDate|ajfDateValueString"
[max]="instance.node.maxDate|ajfDateValueString"
(change)="onChange()"
Expand Down

0 comments on commit 619c95d

Please sign in to comment.