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

fix(ui5-checkbox): set aria-hidden attribute #2828

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

dobrinyonkov
Copy link
Contributor

Input element now has aria-hidden="true" instead of role="none", to not be mapped to the accessibility tree.

Fixes: #2786

Copy link
Member

@ilhan007 ilhan007 left a comment

Choose a reason for hiding this comment

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

Just to clarify about he 2nd part of the reported issue: "Form elements must have labels (label)"

I guess once we use aria-hidden="true", no labels would be required right?

@dobrinyonkov
Copy link
Contributor Author

Just to clarify about he 2nd part of the reported issue: "Form elements must have labels (label)"

I guess once we use aria-hidden="true", no labels would be required right?

Correct. The aria-hidden will completely remove the element from the ACC tree, making it invisible to validators.

The purpose of the input is to only be included if the checkbox is part of a form submitted by button[type="submit"].

@ilhan007 ilhan007 merged commit d237401 into SAP:master Feb 17, 2021
ilhan007 pushed a commit that referenced this pull request Feb 25, 2021
Input element now has aria-hidden="true" instead of role="none", to not be mapped to the accessibility tree.

Fixes: #2786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SF_ACC Successfactors: ui5-checkbox a11y issue
2 participants