adobe / adobe/spectrum-web-components

[Bug][a11y]: Table selected row state without "selects" specified lacks sufficient contrast

Open
#3,399 2 comments 0 reactions 1 assignee Claimed by @jawinn View on GitHub
a11y bug Component:Table Good first issue SEV missing Spectrum
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

It should be possible to distinguish a selected row from a not selected row even when the selection checkbox is not present.

See React-Spectrum for a positive example: https://react-spectrum.adobe.com/react-spectrum/TableView.html#highlight-selection

### Actual behavior

Selected row state with not `selects` attribute specified lacks sufficient contrast to distinguish selected rows from not selected rows, which is a failure of [WCAG 2.1 Success Criterion 1.4.11 Non-text Contrast](https://www.w3.org/TR/WCAG21/#non-text-contrast)

### 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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.