Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accessibility] Add warning for non-string checkbox labels #300

Merged
merged 4 commits into from
Oct 29, 2020

Conversation

aleksik
Copy link
Contributor

@aleksik aleksik commented Oct 29, 2020

Description

This PR adds warning when using other than strings as a checkbox label.

Motivation and Context

Links (anchor) embedded in label is poor usability and accessibility practice:

  • First, it is very easy for keyboard and screenreader users to accidentally activate the link and/or the checkbox when attempting to click the other one, as users do not necessarily perceive the elements as separate. Secondly, such an unorthodox tag embedding will cause some screenreaders to describe the embedded link in a very unusual manner that is hard to comprehend.

  • We recommend that the link be rather placed adjacent but separate to the checkbox. E.g. first the link “City data protection principles”, and below it as a separate checkbox: I have read the city data protection principles (link above).”

Related Issue

#140

@aleksik aleksik requested a review from niglu1 October 29, 2020 06:44
Copy link
Contributor

@niglu1 niglu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@niglu1 niglu1 merged commit caa9a04 into master Oct 29, 2020
@niglu1 niglu1 deleted the accessibility/deprecate-rich-checkbox-labels branch October 29, 2020 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants