Bug 37758

Summary: Accessibility: "translControl1" field is missing a descriptive label
Product: Koha Reporter: Laura Escamilla <Laura.escamilla>
Component: AccessibilityAssignee: Laura Escamilla <Laura.escamilla>
Status: RESOLVED FIXED QA Contact: Lucas Gass (lukeg) <lucas>
Severity: minor    
Priority: P5 - low CC: lucas, martin.renvoize, matt.blenkinsop, oleonard
Version: MainKeywords: accessibility
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.11.00
Circulation function:
Attachments: Bug 37758: Hide the new labels but keep them accessible
Bug 37758: Add descriptive label to opac search bar
Bug 37758: Hide the new labels but keep them accessible
Bug 37758: Add descriptive labels for accessibility
Bug 37758: Add descriptive labels for accessibility
Bug 37758: Add descriptive labels for accessibility
Bug 37758: Add descriptive labels for accessibility
Bug 37758: Add descriptive labels for accessibility

Description Laura Escamilla 2024-08-28 13:11:40 UTC
For accessibility purposes every form element should have a descriptive text label.

To recreate: 
1. Go to your OPAC
2. Inspect the traslControl1 field - this is the catalog search bar. 
3. Note that the field has an input type, class, id, name, and a value placeholder but not a label.
Comment 1 Laura Escamilla 2024-08-28 17:37:07 UTC Comment hidden (obsolete)
Comment 2 Laura Escamilla 2024-08-28 17:38:28 UTC Comment hidden (obsolete)
Comment 3 Laura Escamilla 2024-08-28 17:38:30 UTC Comment hidden (obsolete)
Comment 4 Laura Escamilla 2024-08-28 19:49:21 UTC Comment hidden (obsolete)
Comment 5 Laura Escamilla 2024-08-28 19:57:43 UTC Comment hidden (obsolete)
Comment 6 Laura Escamilla 2024-08-28 20:01:30 UTC
Created attachment 170846 [details] [review]
Bug 37758: Add descriptive labels for accessibility

To test: 
1. Go to your OPAC
2. Inspect the translControl1 field - this is the catalog search bar. Note that the field has an input type, class, id, name, and a value placeholder but not a label.  
3. Then inspect the masthead_search drop down, to the left of the catalog search bar. Note that it has a select name, id, and class but no descriptive label. 
4. Apply this patch, restart_all, do a yarn build and clear your browser's cache. 
5. Repeat step 2 and 3. 
6. Note that the fields now include a descriptive label in addition to the other fields that were already visible. 
7. Sign off and have an incredible day! :D
Comment 7 Owen Leonard 2024-08-29 18:13:15 UTC
Created attachment 170878 [details] [review]
Bug 37758: Add descriptive labels for accessibility

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 8 Owen Leonard 2024-08-29 18:14:04 UTC
I obsoleted the CSS patch because a similar "visually-hidden" class is in Bootstrap 5. Please correct me if that's wrong!
Comment 9 Lucas Gass (lukeg) 2024-08-29 19:19:57 UTC
Good fix, improves accessibility, passing QA. Thank you, Laura!
Comment 10 Lucas Gass (lukeg) 2024-08-29 19:20:29 UTC
Created attachment 170880 [details] [review]
Bug 37758: Add descriptive labels for accessibility

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 11 Katrin Fischer 2024-08-30 10:46:44 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 12 Lucas Gass (lukeg) 2024-10-09 22:10:43 UTC
Doesn't apply cleanly to 24.05.x. Happy to include if it is rebased for 24.05.x
Comment 13 Lucas Gass (lukeg) 2024-11-15 20:33:21 UTC
Merge conflicts with 24.05.x, no backport.