-
Notifications
You must be signed in to change notification settings - Fork 86
feat: improve accessibility based on ARIA 1.2 #2745
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
Conversation
el.setAttribute('theme', this.theme); | ||
} else { | ||
el.removeAttribute('theme'); | ||
} |
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.
Since aria-setsize
was added and virtual scrolling is used, el.setAttribute('aria-posinset', index);
also needs to be applied so that the announced index is correct also on the items at the end of the set.
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.
Hmm...even with aria-posinset
there seems to be some oddities with announcing the proper index
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.
Thanks, done.
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.
For some reason, the first item is announced as "1 of 200" (1-based index) but the last item announces as "199 of 200" (0-based index)
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.
Submitted #2747 to investigate if we can fix this later.
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.
Other than #2745 (comment), lgtm
b61ba18
to
bfeb73f
Compare
Kudos, SonarCloud Quality Gate passed!
|
This ticket/PR has been released with platform 22.0.0.alpha7 and is also targeting the upcoming stable 22.0.0 version. |
Description
Fixes #2483
Fixes #1338
Fixes #1341
Fixes #1350 (as we remove the timeout)
Type of change