carbon icon indicating copy to clipboard operation
carbon copied to clipboard

Accessibility issue: screen readers are unable to read filter's number on Carbon badges

Open kzyryanova opened this issue 5 months ago • 1 comments
trafficstars

Description

Carbon Badges has an accessibility issue of Info and Relationships, screen readers are unable to read filter's number. When using a badge with a number this information is not relayed to screen reader users.

All information that is presented visually, should be available in the code and related to screen reader users. This is a failure of 1.3.1 Info and Relationships (A) and is a critical issue. This affects screen reader users and is found on Filter on Employees.

Reproduction

https://carbon.sage.com/v/154.3.2/index.html?path=/docs/badge--docs

Steps to reproduce

Go to the page https://carbon.sage.com/v/154.3.2/index.html?path=/docs/badge--docs. Enable a screenreader, e.g. on Windows it's a Narrator. Focus on any element that contains a badge, use tab button on a keyboard to switch focus to the badge. The screen reader reads only the name "Filter".

Image

JIRA ticket numbers (Sage only)

SKPU-13720

Suggested solution

Add a wrapper with a specific role and aria-label that contains the name of the badge button and its counter value.

Carbon version

154.3.2

React version

v17

Design tokens version

No response

Relevant browsers

Chrome

Relevant OSs

Windows

Additional context

No response

Confidentiality

  • [x] I confirm there is no confidential or commercially sensitive information included.

kzyryanova avatar May 27 '25 15:05 kzyryanova

FE-7279

tomdavies73 avatar Jun 03 '25 13:06 tomdavies73

:tada: This issue has been resolved in version 154.12.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

carbonci avatar Jun 24 '25 13:06 carbonci