[bug] <pf-switch />
- Switch lacks a static accessible label
#2754
Labels
<pf-switch />
- Switch lacks a static accessible label
#2754
Description of the issue
<pf-switch />
lacks an accessible static label. The current label uses the state of the switch as the label.Impacted component(s)
<pf-switch />
Steps to reproduce
Basic Demo
<pf-switch />
"Basic" demo.Without Label Demo
Other demos
Similarly, the "Checked with label" and "Disabled" follow these trends and need fixed.
Expected behavior
All
<pf-switch />
elements should include an accessible label for the control.aria-describedby
attribute that targets the controls toggled state options.<label>
isn't used, the switch needs anaccessible-label
property/attribute.Proposed fixes:
Related to RedHat-UX/red-hat-design-system#1513 (comment).
The text was updated successfully, but these errors were encountered: