adobe / adobe/react-spectrum

Table accessibility (screen readers)

Open
#9,160 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

### Provide a general summary of the issue here

Component tested: https://react-spectrum.adobe.com/react-aria-tailwind-starter/iframe.html?viewMode=docs&id=table--docs&globals=

Screen readers tested with: NVDA (chrome), JAWS (Chrome) and VO (Safari)

Screen readers are reading out extra information related to the existence of the resizing slider and the width of the cell which has nothing to do with the cell data.

### 🤔 Expected Behavior?

Screen readers read out the cell data without "75 pixels" OR "Resizer Type Resizer" also being read out.

### 😯 Current Behavior

NVDA and JAWS both read out a pixel value with the cell data (example Type75 pixels column 3 System file) and it is read out with each cell as you navigate to the right through a row. VO reads it out as "Type and Resizer Type Resizer System file, column 3 of 4."

The "75 pixels" and "Resizer Type Resizer" are part of the computed name for the column header in chrome and safari respectively.

### 💁 Possible Solution

Update the column headers so that the slider is not a part of the computed accessible name.

### 🔦 Context

The pixel/resizer info is a confusing addition to the cell data.

### 🖥️ Steps to Reproduce

Component tested: https://react-spectrum.adobe.com/react-aria-tailwind-starter/iframe.html?viewMode=docs&id=table--docs&globals=

Screen readers tested with: NVDA (chrome), JAWS (Chrome) and VO (Safari)

Navigate the cells of the table with various screen readers.

### Version

latest - this is the example from the docs

### What browsers are you seeing the problem on?

Chrome, Safari

### If other, please specify.

_No response_

### What operating system are you using?

Mac/PC

### 🧢 Your Company/Team

_No response_

### 🕷 Tracking Issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.