Commit 708b2cca by Tim Krones

Address review comments (i18n).

parent b574ec34
...@@ -114,7 +114,7 @@ class TestVectorDraw(StudioEditableBaseTest): ...@@ -114,7 +114,7 @@ class TestVectorDraw(StudioEditableBaseTest):
actions = self.exercise.find_element_by_css_selector(".action") actions = self.exercise.find_element_by_css_selector(".action")
self.assertTrue(actions.is_displayed()) self.assertTrue(actions.is_displayed())
check = actions.find_element_by_css_selector(".check") 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=[]): def check_dropdown(self, controls, vectors=[], points=[]):
dropdown = controls.find_element_by_css_selector("select") dropdown = controls.find_element_by_css_selector("select")
......
...@@ -100,6 +100,21 @@ ...@@ -100,6 +100,21 @@
text-transform: uppercase; 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 { .vectordraw_block .vectordraw-status {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
......
...@@ -61,8 +61,8 @@ ...@@ -61,8 +61,8 @@
<div class="action"> <div class="action">
<button class="check"> <button class="check">
<span class="check-label">{% trans "Check" %}</span> <span class="check-label" aria-hidden="true">{% trans "Check" %}</span>
<span class="sr"> {% trans "your answer" %}</span> <span class="sr"> {% trans "Check your answer" %}</span>
</button> </button>
</div> </div>
......
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