Bug 37758 - Accessibility: "translControl1" field is missing a descriptive label
Summary: Accessibility: "translControl1" field is missing a descriptive label
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Laura Escamilla
QA Contact: Lucas Gass (lukeg)
URL:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2024-08-28 13:11 UTC by Laura Escamilla
Modified: 2024-11-15 20:33 UTC (History)
4 users (show)

See Also:
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 (899 bytes, patch)
2024-08-28 17:37 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Add descriptive label to opac search bar (1.98 KB, patch)
2024-08-28 17:38 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Hide the new labels but keep them accessible (899 bytes, patch)
2024-08-28 17:38 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Add descriptive labels for accessibility (1.40 KB, patch)
2024-08-28 19:49 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Add descriptive labels for accessibility (1.98 KB, patch)
2024-08-28 19:57 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Add descriptive labels for accessibility (2.76 KB, patch)
2024-08-28 20:01 UTC, Laura Escamilla
Details | Diff | Splinter Review
Bug 37758: Add descriptive labels for accessibility (2.81 KB, patch)
2024-08-29 18:13 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 37758: Add descriptive labels for accessibility (2.87 KB, patch)
2024-08-29 19:20 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.