Improve CheckboxRadioSwitch for better accessibility #2708
Labels
2. developing
Work in progress
enhancement
New feature or request
feature: checkbox-radio-switch
Related to the checkbox-radio-switch component
Milestone
As i saw implementation within nextcloud/server#32557 i have noticed, that the accessibility for CheckboxRadioSwitch needs to be improved.
Real input should be positioned within the label, on top of the SVG.
When you hide an interactive element, make sure you choose a hiding technique that keeps it screen reader-accessible, position it on top of whatever is visually replacing it so that a user navigating by touch can find it where they expect to, and then make it transparent.
Styles
https://github.com/nextcloud/nextcloud-vue/blob/d806d43e6b70364e740d8a00d71df46b547b4a7a/src/components/CheckboxRadioSwitch/CheckboxRadioSwitch.vue#L414-L420
should be replaced with
see more here https://www.sarasoueidan.com/blog/inclusively-hiding-and-styling-checkboxes-and-radio-buttons/
The text was updated successfully, but these errors were encountered: