adobe / adobe/spectrum-web-components

[Bug][a11y]: Static Tables can use role="table" and role="cell" instead of role="grid" and role="gridcell"

Open
#3,395 1 comment 0 reactions 0 assignees View on GitHub
a11y bug Component:Table SEV missing VoiceOver
Dominant language
TypeScript
Stars
1.5k
Forks
262
Avg merge
3d 10h
Merged PRs (30d)
68

Description

### Code of conduct

- [X] I agree to follow this project's code of conduct.

### Impacted component(s)

Table

### Expected behavior

The current Table implementation does not support row or column navigation using the arrow keys. As such, without `selects` or `selected` attributes, it is essentially a static table and, and `role="table"` and `role="cell"` may be preferred over `role="grid"` and `role="gridcell"`.

### Actual behavior

Static Table without `selection` uses `role="grid"` and `role="gridcell"`, without supporting navigation of the grid using arrow keys.

### Screenshots

_No response_

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

_No response_

### How can we reproduce this issue?

1. Go to '...'
2. Click on '....'
3. Scroll to '....'
4. Check console
5. See error

### Sample code that illustrates the problem

_No response_

### Logs taken while reproducing problem

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the Table component and inspect how roles are selected when selection-related attributes are absent. Verify the rendered roles for static tables and confirm the change preserves interactive table behavior; done means static tables expose table/cell semantics without breaking selected or selects cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.