feat[dev]: ✨ implement A11y improvements to sd-switch #1488
Labels
A11y Audit
Identifies tasks related to accessibility improvements identified in the A11y audit of the DS
🔧 code
needs changes in code
Critical A11y Issue
Require immediate attention and resolution
Subtask
Epic subtasks
Description
This task describes the Storybook implementation for the sd-switch component as part of the A11y improvements outlined in Epic #1465.
A11y improvements for sd-switch can be found here: sd-switch Notes.
Comment
Problem: Invalid checkboxes don't indicate that they're invalid.
Solution: Add and toggle aria-invalid="true" on the input element.
Problem: Error messages are semantically not connected to the respective input element and are only announced when the user unticks a required checkbox.
Solution: Instead of using a live region for the error message, connect it with the affected input field. Screen readers then announce the message automatically when the user focuses the checkbox.
Notes
Best Practices
Additional resources
Open Questions towards design
DoR
DoD
feature
branchThe text was updated successfully, but these errors were encountered: