-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Adds selection state of elements for screenreader #19360
Conversation
5644e02
to
ae7136f
Compare
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.
This looks good to me, but I'm going to hold off on approving it until the failing accessibility tests are passing.
jenkins run a11y |
The problem is a role/state mismatch. See https://www.stefanjudis.com/blog/aria-selected-and-when-to-use-it/. |
I think this will work if we just use aria-current="page" and omit aria-selected (which was an older method before aria-current came in with ARIA1.1). |
ae7136f
to
468abe2
Compare
jenkins run a11y |
1 similar comment
jenkins run a11y |
Hey @adeelkhan can we spin up a sandbox for this? Based on the notes from this URL the default for aria-current should be false. Based on this line of code: https://github.com/edx/edx-platform/pull/19360/files#diff-9e702e24e0c4050c5f6038511aa82b29R34 I would expect that by setting |
7340164
to
5fff6c7
Compare
Noting for the record that the Axe tests were failing due to the package (v1.1) not recognizing aria-current. Aria-current rules were added with v2.2. Adeel is testing a bump to current version (v3.1.2). There's also this issue regarding aria-current="". dequelabs/axe-core#994 |
I tried bumping the version of axe-core in edx/edx-custom-a11y-rules and installed from my branch into edx-platform to see if that was the culprit, but it looks like it's still failing. Either my branch was not installed correctly into edx-platform, or the version of axe-core in edx/edx-custom-a11y-rules is not relevant for these tests. https://github.com/edx/edx-custom-a11y-rules/tree/mroytman/update-axe-core |
ff24ce7
to
c8b340c
Compare
jenkins run all |
c8b340c
to
6f42e31
Compare
@fysheets Here is the sandbox you asked. https://learner-6611-exposing-selection-state.sandbox.edx.org |
@MichaelRoytman Looking at the link you sent, I'm not sure that your changes were released? Wouldn't we need to do a release of your changes in that repo then update the version in the platform package.json? |
@fysheets I was trying to npm install my changes from the branch in edx-custom-a11y-rules. Do you suspect that that's not working? |
Ah - Perhaps? If you try to install it that way locally, do you see the expected version installed? I think we had some issues with branch installations recently, didn't we? |
6f42e31
to
79370bf
Compare
Dashboard header was missing aria-current and aria-selected attributes causing no information exposed to screen reader about selection.This would enable such info to be passed to screen reader LEARNER-6611
fe33ce0
to
3d2aea8
Compare
jenkins run lettuce |
Your PR has finished running tests. There were no failures. |
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Thursday, December 20, 2018. |
EdX Release Notice: This PR has been deployed to the production environment. |
Dashboard header was missing aria-current and
aria-selected attributes causing no information
exposed to screen reader about selection.This
would enable such info to be passed to screen
reader
LEARNER-6611