OPAC item tables' selection checkboxes need better labels

Bug #2043042 reported by Stephanie Leary
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

In the OPAC My Account screens, the tables' row selection checkboxes are either missing labels entirely, or have repetitive ARIA labels that don't tell the user which row is being selected.

The most straightforward way to fix this would be to set the aria-label attribute to a string containing the title and author of the item being selected.

We could also do it by adding unique IDs to the table cells (record ID + "-title", "-author", etc.) and setting aria-labelledby to the combination of the two IDs for each row (as described in https://adrianroselli.com/2019/05/uniquely-labeling-fields-in-a-table.html), but I think this is unnecessarily convoluted when we have the title and author strings in hand.

Some of the checkboxes have a title attribute, which provides a nice tooltip. However, not all of them do, and the ones that are there need to include the titles and authors. The title attribute is useful only for tooltips; it does not fulfill the requirement for a label.

This issue plays out a little differently on each of the account screens:

* In the search results, all the results' checkboxes have the same ARIA label: "Add to Basket." This should be something more like "Add to Basket: TITLE by AUTHOR." (The select-all checkbox at the top is fine.)

* In the basket, all the checkboxes' ARIA labels say "Select record." This should be more like "Select TITLE by AUTHOR."

* In the Holds table, the checkboxes have a title attribute ("Select hold") but no <label> or ARIA label.

* In Lists and the circulation history, none of the checkboxes, including the select-all one at the top, have any kind of label or title attribute.

tags: added: opac
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.