-
Notifications
You must be signed in to change notification settings - Fork 19
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
STSMACOM-882 <NoteFields>
improve "Display as pop-up" markup and fix label a11y issue.
#1553
Conversation
…x label a11y issue.
<Label for="display-as-popup-group"> | ||
<span className={styles.heading}> | ||
<FormattedMessage id="stripes-smart-components.notes.displayAsPopup.label" /> | ||
</span> | ||
</Label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the 2nd approach from the ticket is what we need, it will announce "grouping" and be an indicator for the association of checkboxes. This can be seen with NVDA, axe dev tools doesn't show it. The for
attribute shouldn't work in React for label
tags.
0638e4f
to
d4c3c1a
Compare
|
Description
axe previously showed an a11y issue related to checkbox group labels. Latest code doesn't show this issue anymore, but applied the fix anyways.
Re-organized "Display as pop-up" checkbox group markup.
Screenshots
Issues
STSMACOM-882