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 accessibility issues in SGA #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amir-qayyum-khan
Copy link

In this PR I fixed accessibility related issues. Added necessary ARIA tags into code.

@carsongee and @pdpinch please review it

Thanks

@pdpinch
Copy link
Member

pdpinch commented Apr 28, 2015

@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.

@bdero
Copy link

bdero commented Apr 30, 2015

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");
Copy link

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...

@amir-qayyum-khan
Copy link
Author

@pdpinch and @bdero done with fix

@pdpinch
Copy link
Member

pdpinch commented May 27, 2015

@amir-qayyum-khan are there any changes we should consider for this, based on what you heard from edX?

@amir-qayyum-khan amir-qayyum-khan force-pushed the accessibility_fix branch 3 times, most recently from c2119c4 to d659fee Compare June 9, 2015 12:55
@tssheth
Copy link

tssheth commented Jul 23, 2015

How might I test this?

@amir-qayyum-khan
Copy link
Author

@jetej You can use screen reading tools like chromeVox (A chrome browser plugin) or command+F5 on mac to verify this PR.
Also read http://edx-partner-course-staff.readthedocs.org/en/latest/getting_started/accessibility.html

@tssheth
Copy link

tssheth commented Jul 24, 2015

Seems to work ok. I was able to use VoiceOver with both the student and instructor UI.

@pdpinch
Copy link
Member

pdpinch commented Jul 29, 2015

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">
Copy link
Member

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"

@pdpinch
Copy link
Member

pdpinch commented Jul 29, 2015

Let's merge after the typo fix. This will all need another round of accessibility review afterwards, but this is an improvement.

@amir-qayyum-khan amir-qayyum-khan force-pushed the accessibility_fix branch 2 times, most recently from 31673b1 to b02665d Compare July 30, 2015 11:48
@amir-qayyum-khan
Copy link
Author

@pdpinch issue fixed

@amir-qayyum-khan amir-qayyum-khan changed the title fix accessibility issues in code Fix accessibility issues in SGA Jul 30, 2015
@@ -100,7 +101,7 @@
<% } %>
</td>
<td>
<div class="upload">
<div class="upload" aria-live="assertive" role="alert" tabindex="1">
Copy link
Member

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>
Copy link

Choose a reason for hiding this comment

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

tabindex="-1"

@pdpinch pdpinch assigned pdpinch and unassigned bdero Aug 14, 2015
@pdpinch pdpinch assigned amir-qayyum-khan and unassigned pdpinch Aug 14, 2015
@amir-qayyum-khan amir-qayyum-khan force-pushed the accessibility_fix branch 2 times, most recently from 2d731a0 to a138ad5 Compare August 24, 2015 11:28
@amir-qayyum-khan
Copy link
Author

Done @pdpinch

@pdpinch
Copy link
Member

pdpinch commented Aug 4, 2017

@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.

@pdpinch
Copy link
Member

pdpinch commented Apr 9, 2018

@amir-qayyum-khan do you know if we have an issue for this?

@amir-qayyum-khan
Copy link
Author

I dont think so @pdpinch

@pdpinch
Copy link
Member

pdpinch commented Nov 26, 2018

@amir-qayyum-khan can you address the merge conflicts?

@pdpinch pdpinch assigned pdpinch and unassigned amir-qayyum-khan Dec 3, 2018
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.

4 participants