Merge pull request #9257 from edx/clrux/ux-2515-calc-label

Calculator: fixing remainder of a11y errors
This commit is contained in:
clrux
2015-08-17 10:40:19 -04:00
2 changed files with 16 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
// LMS -- modules -- calculator
// ====================
div.calc-main {
.calc-main {
@extend %ui-print-excluded;
bottom: -126px;
@@ -29,7 +29,7 @@ div.calc-main {
width: ($baseline*0.75);
&:hover, &:focus {
background-color: $gray-d1;
background: url("../images/calc-icon.png") $gray-d1 no-repeat center;
}
&.closed {
@@ -44,7 +44,7 @@ div.calc-main {
}
}
div#calculator_wrapper {
#calculator_wrapper {
clear: both;
position: relative;
top: -36px;
@@ -72,7 +72,7 @@ div.calc-main {
color: $white;
}
button#calculator_button {
#calculator_button {
background: #111;
border: 1px solid $black;
border-radius: 0;
@@ -90,7 +90,7 @@ div.calc-main {
width: flex-grid(.5) + flex-gutter();
&:hover, &:focus {
color: #333;
color: $link-color;
}
.calc-button-label {
@@ -99,7 +99,7 @@ div.calc-main {
}
}
input#calculator_output {
#calculator_output {
background: #111;
border: 0;
box-shadow: none;
@@ -114,14 +114,19 @@ div.calc-main {
width: flex-grid(4);
}
div.input-wrapper {
.input-wrapper {
@extend .clearfix;
float: left;
margin: 0;
position: relative;
width: flex-grid(7.5);
input#calculator_input {
.label-calc-input {
background: $black;
color: $white;
}
#calculator_input {
border: none;
box-shadow: none;
@include box-sizing(border-box);
@@ -135,7 +140,7 @@ div.calc-main {
}
}
div.help-wrapper {
.help-wrapper {
position: absolute;
right: 0;
top: 0;