omeka / Omeka

A flexible web publishing platform for the display of library, museum and scholarly collections, archives and exhibitions.
http://omeka.org
GNU General Public License v3.0
472 stars 193 forks source link

Sort links do not provide screen readers with state change information #985

Open kimisgold opened 1 year ago

kimisgold commented 1 year ago

A sample from similar comments in our accessibility audit:

Description: When navigating the 'Browse Collections' page using a screen reader and actuating the 'Sort By:' elements, an incorrect status message is made to the user that does not describe the new change made to the page.

Expected Results: A status message narrating the activated change in order of presented elements is made to the user such as "[Title] - Sort ascending" or an alternative with the same level of clarity.

Part of the problem is that our sorting and paginating require reloading the page. ARIA roles like "live" are assuming dynamic content that don't involve the page load, often javascript-driven solutions. It would be helpful to find a relevant precedent for our use case. Gov.uk has a write up on notification banners that offers a possible solution. They use [aria-role="alert"] on notifications, and their rationale for "reacting to something the user has done" feels like it fits what Omeka is doing on the public browse views when sorting.