Add tabIndex=-1 to aria hidden links

Created on 24 October 2024, 28 days ago

Problem/Motivation

The SVG icons in the teasers are decorative and they have the attribute aria-hidden="true", thanks to https://www.drupal.org/node/3179128

However, this makes it possible to tab to the link, and Axe reports the violation, [ARIA hidden element must not be focusable or contain focusable elements](https://dequeuniversity.com/rules/axe/4.10/aria-hidden-focus)

Steps to reproduce

Tab through a page that has teasers, observe that you're able to tab to the SVG icon.

Proposed resolution

Add tabIndex=-1 to the link.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

13.0

Component

Front-End

Created by

🇬🇧United Kingdom matason

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024