LP#1839369 Accessibility for Search Box
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 22 Oct 2019 20:16:35 +0000 (16:16 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 7 Aug 2020 03:07:29 +0000 (20:07 -0700)
This adds an accessible label to the Search box on the splash
page of the staff client as well as to the Angular version of
the splash page.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/staff/splash.component.html
Open-ILS/src/templates/staff/t_splash.tt2

index 612e906..fb6b909 100644 (file)
@@ -73,7 +73,8 @@
                   [(ngModel)]="catSearchQuery"
                   id='catalog-search-input'
                   (keyup.enter)="searchCatalog()"
-                  i18n-placeholder placeholder="Search for...">
+                  i18n-placeholder placeholder="Search for..."
+                  i18n-aria-label aria-label="Search for...">
                 <span class="input-group-btn">
                   <button class="btn btn-outline-secondary" 
                     (click)="searchCatalog()" type="button" i18n>
index 2161e7e..0e5944a 100644 (file)
@@ -45,6 +45,7 @@
           <div class="row">
             <div class="col-md-8">
                 <input focus-me="focus_search" 
+                    aria-label="[% l('Search catalog for...') %]"
                     class="form-control" ng-model="cat_query" type="text" 
                     ng-keypress="catalog_search($event)"
                     placeholder="[% l('Search catalog for...') %]"/>