Problem/Motivation
As discussed in the Accessibility meeting
Currently, the result count + additional info are in an <output> element. This is an active element that conveys info to screen readers. However, it will only convey that information when the content of the element changes. This results in a problem - if a filter/search change has the same number of results, the <output> contents do not change, and thus nothing is conveyed to the screen reader.
For example Choose "accessibility" category , amd set the filters to "covered by a security policy" and "maintained". Toggle the "development status" and the result count will be the same. Currently that means the screenreader says nothing, but a screenreader user needs to know the number of results after they choose a new filter, even if the result count is the same. It's relevant information and it's absence could lead to the impression that the operation did not complete.
Steps to reproduce
Proposed resolution
Instead of relying on <output>, use Drupal.announce() for greater control over the information conveyed.
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
Issue fork project_browser-3323531
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
narendrarComment #5
bnjmnmComment #6
narendrarI tested it manually and it seems it is not working properly.
Steps to reproduce:
Comment #7
bnjmnmLooks like this needed to account for a 200ms debounce built into Drupal.announce(). Updated MR with something that fixed it for me at least, lets see how it goes!
Comment #8
narendrarChanges looks good to me. Marking RTBC
Comment #11
tim.plunkettMerged, thanks!