Bug 40782: Selections toolbar checkbox now adds tabindex -1

This patch now sets tabindex to -1 if a disabled class is applied to a
control, and removes it when the class evaporates. This improves
accessibility by making these disabled items non-focusable.

To test:
a)  make a search on the OPAC
b)  tab through the selections toolbar, notice how visually disabled
    items are focusable
APPLY PATCH
c)  repeat steps a-b, notice how the elements are no longer focusable
SIGN OFF

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Bug 40782: (follow-up) Tidy results-list.js

Tidy converts single quotes to double quotes

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jake Deery 2025-09-09 11:30:56 +00:00 committed by Lucas Gass
parent 9278eed6f2
commit 0c6402b951
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 2 additions and 0 deletions

View File

@ -34,9 +34,11 @@ function enableCheckboxActions() {
if ($(checkedBoxes).size()) {
$(".selections").html(__("With selected titles: "));
$(controls).removeClass("disabled");
$(controls).removeAttr("tabindex");
} else {
$(".selections").html(__("Select titles to: "));
$(controls).addClass("disabled");
$(controls).attr("tabindex", "-1");
}
}