Merge pull request #5639 from edx/waheed/fix-screen-reader-user-issues
Fixed screen reader issues.
This commit is contained in:
@@ -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 @@
|
|||||||
${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)
|
|||||||
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 @@
|
|||||||
|
|
||||||
<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 @@
|
|||||||
<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">
|
||||||
|
|||||||
Reference in New Issue
Block a user