Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3ad2959f
Commit
3ad2959f
authored
Oct 21, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5639 from edx/waheed/fix-screen-reader-user-issues
Fixed screen reader issues.
parents
9a1bae04
865850c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
common/lib/capa/capa/templates/textline.html
+1
-2
lms/djangoapps/courseware/tests/test_masquerade.py
+1
-1
lms/templates/problem.html
+2
-2
No files found.
common/lib/capa/capa/templates/textline.html
View file @
3ad2959f
...
...
@@ -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>
...
...
lms/djangoapps/courseware/tests/test_masquerade.py
View file @
3ad2959f
...
...
@@ -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
):
...
...
lms/templates/problem.html
View file @
3ad2959f
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment