Commit 865850c2 by Waheed Ahmed

Fixed screen reader issues.

TNL-568
TNL-588
TNL-595
parent 16771e69
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
<p class="status" <p class="status"
%if status != 'unsubmitted': %if status != 'unsubmitted':
aria-hidden="true"
%endif %endif
aria-describedby="input_${id}"> aria-describedby="input_${id}">
%if value: %if value:
...@@ -41,7 +40,7 @@ ...@@ -41,7 +40,7 @@
${status.display_name} ${status.display_name}
</p> </p>
<p id="answer_${id}" class="answer" aria-hidden="true"></p> <p id="answer_${id}" class="answer"></p>
% if do_math: % if do_math:
<div id="display_${id}" class="equation">`{::}`</div> <div id="display_${id}" class="equation">`{::}`</div>
......
...@@ -98,7 +98,7 @@ class TestStaffMasqueradeAsStudent(ModuleStoreTestCase, LoginEnrollmentTestCase) ...@@ -98,7 +98,7 @@ class TestStaffMasqueradeAsStudent(ModuleStoreTestCase, LoginEnrollmentTestCase)
resp = self.get_problem() resp = self.get_problem()
html = json.loads(resp.content)['html'] html = json.loads(resp.content)['html']
print html print html
sabut = '<button class="show"><span class="show-label" aria-hidden="true">Show Answer</span> <span class="sr">Reveal Answer</span></button>' sabut = '<button class="show"><span class="show-label">Show Answer</span> <span class="sr">Reveal Answer</span></button>'
self.assertTrue(sabut in html) self.assertTrue(sabut in html)
def test_no_showanswer_for_student(self): def test_no_showanswer_for_student(self):
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="problem-progress"></div> <div class="problem-progress"></div>
<div class="problem"> <div class="problem" aria-live="polite" aria-relevant="all">
${ problem['html'] } ${ problem['html'] }
<div class="action"> <div class="action">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<input class="save" type="button" value="${_('Save')}" /> <input class="save" type="button" value="${_('Save')}" />
% endif % endif
% if answer_available: % if answer_available:
<button class="show"><span class="show-label" aria-hidden="true">${_('Show Answer')}</span> <span class="sr">${_("Reveal Answer")}</span></button> <button class="show"><span class="show-label">${_('Show Answer')}</span> <span class="sr">${_("Reveal Answer")}</span></button>
% endif % endif
% if attempts_allowed : % if attempts_allowed :
<div class="submission_feedback"> <div class="submission_feedback">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment