adobe / adobe/spectrum-web-components

[Feat][Checkbox][Switch]: CheckboxBase should support label, labelledby and describedby

Open
#3,269 9 comments 0 reactions 0 assignees View on GitHub
a11y Component:Checkbox Component:Switch Feature Research
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)

Checkbox, CheckboxBase, Switch

### Description of the requested feature

It should be possible to label a Checkbox, without a visible label, using `label`, `labelledby` and `describedby`, so that for example checkboxes in a Table used for row selection can be labeled using `label="Select"` and `labelledby` referencing the checkbox itself and IDREFs for the row header cells.

### Mockups or screenshots

_No response_

### Implementation notes or ideas

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading the Checkbox, CheckboxBase, and Switch implementations, then trace how their labeling attributes are currently handled. Done means a visually unlabeled checkbox can expose label, labelledby, and describedby, including the table row-selection scenario described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
accessibility, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.