-
Notifications
You must be signed in to change notification settings - Fork 108
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 accessibility issues in SGA #87
base: master
Are you sure you want to change the base?
Conversation
@amir-qayyum-arbisoft it looks like this needs a rebase? FYI, @bdero is going to put this on sandbox and we'll see if we can get it reviewed by an MIT accessibility specialist. |
a77b6a2
to
cfa465b
Compare
This is on sandxox2o |
@@ -48,13 +48,19 @@ function StaffGradedAssignmentXBlock(runtime, element) { | |||
return; | |||
} | |||
} | |||
$(content).find(".upload").attr("role", "progressbar"); | |||
$(content).find(".upload").attr("aria-valuemax", "100"); | |||
$(content).find(".upload").attr("aria-valuemin", "0"); |
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.
A loop would probably be overkill for this, but please store the element before making these calls:
var uploadElement = $(content).find(".upload");
uploadElement.attr(/* params */)
// ...etc...
618f49b
to
c818401
Compare
@amir-qayyum-khan are there any changes we should consider for this, based on what you heard from edX? |
c2119c4
to
d659fee
Compare
How might I test this? |
@jetej You can use screen reading tools like chromeVox (A chrome browser plugin) or command+F5 on mac to verify this PR. |
Seems to work ok. I was able to use VoiceOver with both the student and instructor UI. |
We'll still need another round of accessibility review after this, but this seems worth merging. |
<% } %> | ||
<div class="upload"> | ||
<div class="upload" aria-describedby="upload_lable" aria-live="polite"> |
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.
typo: should these be "upload_label"
Let's merge after the typo fix. This will all need another round of accessibility review afterwards, but this is an improvement. |
31673b1
to
b02665d
Compare
@pdpinch issue fixed |
68bb1b8
to
003d1d9
Compare
@@ -100,7 +101,7 @@ | |||
<% } %> | |||
</td> | |||
<td> | |||
<div class="upload"> | |||
<div class="upload" aria-live="assertive" role="alert" tabindex="1"> |
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.
should this be tabindex="-1"
?
{% for name, field in fields %} | ||
<tr> | ||
<td>{{name}}</td> | ||
<td tabindex="1">{{name}}</td> |
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.
tabindex="-1"
2d731a0
to
a138ad5
Compare
433c817
to
664d138
Compare
Done @pdpinch
|
@amir-qayyum-khan not urgent, but could you rebase this sometime? I'm not sure if it's still relevant, but I'd like to clean this up. |
@amir-qayyum-khan do you know if we have an issue for this? |
I dont think so @pdpinch |
@amir-qayyum-khan can you address the merge conflicts? |
In this PR I fixed accessibility related issues. Added necessary ARIA tags into code.
@carsongee and @pdpinch please review it
Thanks