Problem/Motivation
There are a quite a few instances of a class="use-ajax" without role="button" for links that don't open to a new page. This issue is to add the role="button" attribute to those links and to add a generic solution that would add the spacebar trigger to every a class="use-ajax" instance that should behave like a button.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/bu...

Steps to reproduce
Proposed resolution
1. Add role="button" attribute where necessary
2. Create a generic solution in the ajax library to allow users to be able to trigger links that have role="button" using the spacebar. There is
already an example of this being done in the media library in
Drupal.behaviors.MediaLibraryTabs in core/modules/media_library/js/media_library.ui.js
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2023-02-17 at 2.56.11 PM.png | 158.25 KB | hooroomoo |
Issue fork drupal-3342811
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
hooroomooComment #3
hooroomooComment #4
hooroomooComment #5
mgiffordSo some stuff we want to avoid
Adding this SC https://www.w3.org/WAI/WCAG21/Understanding/name-role-value