https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42230

--- Comment #1 from Laura Escamilla <[email protected]> ---
Created attachment 196685
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=196685&action=edit
Bug 42230: Add accessible label to OPAC summary DataTables search input

The DataTables search input on the OPAC summary page is rendered with an
empty label due to the use of "_INPUT_" in the DataTables language.search
option. This results in markup like:

<label for="dt-search-0"></label>

which is flagged by accessibility tools as a missing form label.

Update the DataTables configuration to include descriptive label text so
the search input has an accessible name.

Test plan:
1. Have a user with checkouts, holds, or article requests
2. Log into the OPAC and go to "Summary"
3. Inspect the DataTables search input
4. Notice the label is empty: <label for="dt-search-0"></label>
5. Apply the patch
6. Repeat steps 1-2 above
7. Inspect the DataTables search input
8. Confirm the label now contains descriptive text (e.g., "Search:")
9. Run an accessibility checker and confirm the empty label error is resolved
10. Sign off and have a wonderful day! :D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to