Skip to content

Commit f1378b8

Browse files
committed
Add label to starts-with-text input field
1 parent 6987952 commit f1378b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/shared/starts-with/text/starts-with-text.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<form class="w-100" [formGroup]="formData" (ngSubmit)="submitForm(formData.value)">
22
<div class="row">
33
<div class="form-group input-group col-8 col-sm-12 col-md-6">
4-
<input class="form-control" placeholder="{{'browse.startsWith.type_text' | translate}}" type="text" name="startsWith" formControlName="startsWith" [value]="getStartsWith()" />
4+
<input class="form-control" [attr.aria-label]="'browse.startsWith.input' | translate" placeholder="{{'browse.startsWith.type_text' | translate}}" type="text" name="startsWith" formControlName="startsWith" [value]="getStartsWith()" />
55
<span class="input-group-append">
66
<button class="btn btn-primary" type="submit"><i class="fas fa-book-open"></i> {{'browse.startsWith.submit' | translate}}</button>
77
</span>

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,8 @@
849849

850850
"browse.startsWith.type_text": "Filter results by typing the first few letters",
851851

852+
"browse.startsWith.input": "Filter",
853+
852854
"browse.title": "Browsing {{ collection }} by {{ field }}{{ startsWith }} {{ value }}",
853855

854856
"browse.title.page": "Browsing {{ collection }} by {{ field }} {{ value }}",

0 commit comments

Comments
 (0)