spectrum-web-components
spectrum-web-components copied to clipboard
[Feat][Checkbox][Switch]: CheckboxBase should support label, labelledby and describedby
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