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
45c1f28d
Commit
45c1f28d
authored
Jul 06, 2015
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing aria values and contrast for accessibility
parent
65a36a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
lms/static/sass/course/modules/_calculator.scss
+36
-5
lms/templates/calculator/toggle_calculator.html
+1
-1
No files found.
lms/static/sass/course/modules/_calculator.scss
View file @
45c1f28d
...
...
@@ -37,14 +37,20 @@ div.calc-main {
background-color
:
$black
;
top
:
-36px
;
}
.utility-control-label
{
background
:
$black
;
color
:
$white
;
}
}
div
#calculator_wrapper
{
background
:
$black
;
clear
:
both
;
max-height
:
90px
;
position
:
relative
;
top
:
-36px
;
max-height
:
90px
;
background
:
$black
;
color
:
$white
;
// UI: input help table
.calculator-input-help-table
{
...
...
@@ -62,6 +68,12 @@ div.calc-main {
@include
box-sizing
(
border-box
);
padding
:
lh
();
label
.sr
{
// including the label here in case other .sr values are added
// we want to limit this 'white' only to the label
color
:
$white
;
}
button
#calculator_button
{
background
:
#111
;
border
:
1px
solid
$black
;
...
...
@@ -82,6 +94,13 @@ div.calc-main {
&
:hover
,
&
:focus
{
color
:
#333
;
}
span
.sr
{
// including the element here in case other .sr values are added
// we want to limit this 'white' only to the span
background
:
$black
;
color
:
$white
;
}
}
input
#calculator_output
{
...
...
@@ -125,19 +144,31 @@ div.calc-main {
right
:
0
;
top
:
0
;
#hint-instructions
{
color
:
$white
;
}
#calculator_hint
{
background
:
url("../images/info-icon.png")
center
center
no-repeat
;
height
:
35px
;
@include
hide-text
;
width
:
35px
;
display
:
block
;
height
:
35px
;
width
:
35px
;
border
:
none
;
background
:
url("../images/info-icon.png")
center
center
no-repeat
;
color
:
$white
;
&
:focus
{
outline
:
5px
auto
#5b9dd9
;
box-shadow
:
none
;
border
:
none
;
}
span
.sr
{
// including the element here in case other .sr values are added
// we want to limit this 'white' only to the span
background
:
$black
;
color
:
$white
;
}
}
.help
{
...
...
lms/templates/calculator/toggle_calculator.html
View file @
45c1f28d
...
...
@@ -17,7 +17,7 @@ from django.core.urlresolvers import reverse
<div
class=
"help-wrapper"
>
<p
class=
"sr"
id=
"hint-instructions"
>
${_('Use the arrow keys to navigate the tips or use the tab key to return to the calculator')}
</p>
<button
id=
"calculator_hint"
aria-haspopup=
"true"
aria-expanded=
"false"
aria-controls=
“calculator_input_help”
aria-describedby=
"hint-instructions"
><span
class=
"sr"
>
${_("Hints")}
</span></button>
<button
id=
"calculator_hint"
aria-haspopup=
"true"
aria-expanded=
"false"
aria-controls=
"calculator_input_help"
aria-describedby=
"hint-instructions"
><span
class=
"sr"
>
${_("Hints")}
</span></button>
<ul
id=
"calculator_input_help"
class=
"help"
aria-hidden=
"true"
>
<li
class=
"hint-item"
id=
"hint-moreinfo"
>
...
...
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