Make links accessible and usable via keyboard

Created on 20 June 2023, over 1 year ago
Updated 27 March 2024, 8 months ago

Problem/Motivation

The like and dislike links could not be accessed or triggered via keyboard.

Steps to reproduce

Use the tab key to navigate a web page that has the links added. Note that the links will be skipped. This is due to them not having a href attribute or a tabindex attribute set to 0.

Proposed resolution

Add the tabindex="0" attribute to the links in the template. Update the JS to allow the enter key (as well as the click event) to trigger the buttons.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom jbaronmailbox@gmail.com

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024