Commit 865850c2 by Waheed Ahmed

Fixed screen reader issues.

TNL-568
TNL-588
TNL-595
parent 16771e69
......@@ -29,7 +29,6 @@
<p class="status"
%if status != 'unsubmitted':
aria-hidden="true"
%endif
aria-describedby="input_${id}">
%if value:
......@@ -41,7 +40,7 @@
${status.display_name}
</p>
<p id="answer_${id}" class="answer" aria-hidden="true"></p>
<p id="answer_${id}" class="answer"></p>
% if do_math:
<div id="display_${id}" class="equation">`{::}`</div>
......
......@@ -98,7 +98,7 @@ class TestStaffMasqueradeAsStudent(ModuleStoreTestCase, LoginEnrollmentTestCase)
resp = self.get_problem()
html = json.loads(resp.content)['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)
def test_no_showanswer_for_student(self):
......
......@@ -7,7 +7,7 @@
<div class="problem-progress"></div>
<div class="problem">
<div class="problem" aria-live="polite" aria-relevant="all">
${ problem['html'] }
<div class="action">
......@@ -23,7 +23,7 @@
<input class="save" type="button" value="${_('Save')}" />
% endif
% 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
% if attempts_allowed :
<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