Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-vectordraw
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
xblock-vectordraw
Commits
708b2cca
Commit
708b2cca
authored
Nov 21, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments (i18n).
parent
b574ec34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
tests/integration/test_vectordraw.py
+1
-1
vectordraw/public/css/vectordraw.css
+15
-0
vectordraw/templates/html/vectordraw.html
+2
-2
No files found.
tests/integration/test_vectordraw.py
View file @
708b2cca
...
...
@@ -114,7 +114,7 @@ class TestVectorDraw(StudioEditableBaseTest):
actions
=
self
.
exercise
.
find_element_by_css_selector
(
".action"
)
self
.
assertTrue
(
actions
.
is_displayed
())
check
=
actions
.
find_element_by_css_selector
(
".check"
)
self
.
assertEquals
(
check
.
text
,
"CHECK
YOUR ANSWER
"
)
self
.
assertEquals
(
check
.
text
,
"CHECK"
)
def
check_dropdown
(
self
,
controls
,
vectors
=
[],
points
=
[]):
dropdown
=
controls
.
find_element_by_css_selector
(
"select"
)
...
...
vectordraw/public/css/vectordraw.css
View file @
708b2cca
...
...
@@ -100,6 +100,21 @@
text-transform
:
uppercase
;
}
/* Make sure screen-reader content is hidden in the workbench: */
.vectordraw_block
.action
.sr
{
display
:
none
;
border
:
0
;
clip
:
rect
(
0
0
0
0
);
height
:
1px
;
margin
:
-1px
;
overflow
:
hidden
;
padding
:
0
;
position
:
absolute
;
width
:
1px
;
background
:
#ffffff
;
color
:
#000000
;
}
.vectordraw_block
.vectordraw-status
{
display
:
inline-block
;
width
:
100%
;
...
...
vectordraw/templates/html/vectordraw.html
View file @
708b2cca
...
...
@@ -61,8 +61,8 @@
<div
class=
"action"
>
<button
class=
"check"
>
<span
class=
"check-label"
>
{% trans "Check" %}
</span>
<span
class=
"sr"
>
{% trans "your answer" %}
</span>
<span
class=
"check-label"
aria-hidden=
"true"
>
{% trans "Check" %}
</span>
<span
class=
"sr"
>
{% trans "
Check
your answer" %}
</span>
</button>
</div>
...
...
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