LMS: fixing skip links and adding a11y tests
This commit is contained in:
@@ -490,7 +490,7 @@ define([
|
||||
'<div class="courseware-results"></div>' +
|
||||
'<section id="course-content"></section>' +
|
||||
'<section id="dashboard-search-results"></section>' +
|
||||
'<section id="my-courses"></section>'
|
||||
'<section id="my-courses" tabindex="-1"></section>'
|
||||
);
|
||||
|
||||
TemplateHelpers.installTemplates([
|
||||
@@ -705,7 +705,7 @@ define([
|
||||
loadFixtures('js/fixtures/search/dashboard_search_form.html');
|
||||
appendSetFixtures(
|
||||
'<section id="dashboard-search-results"></section>' +
|
||||
'<section id="my-courses"></section>'
|
||||
'<section id="my-courses" tabindex="-1"></section>'
|
||||
);
|
||||
loadTemplates.call(this);
|
||||
DashboardSearchFactory();
|
||||
@@ -753,4 +753,4 @@ define([
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -336,20 +336,21 @@ mark {
|
||||
.nav-skip {
|
||||
@extend %ui-print-excluded;
|
||||
|
||||
display: block;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -($baseline*30);
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
background: $white;
|
||||
border-bottom: 1px solid $border-color-4;
|
||||
padding: ($baseline*0.75) ($baseline/2);
|
||||
|
||||
&:focus, &:active {
|
||||
position: static;
|
||||
&:focus,
|
||||
&:active {
|
||||
position: relative;
|
||||
top: auto;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1712,7 +1712,7 @@ input[name="subject"] {
|
||||
height: 40px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
#coupon-content, #course-content, #registration-content, #regcode-content {
|
||||
#coupon-content, #course-content, #content, #registration-content, #regcode-content {
|
||||
padding: $baseline;
|
||||
header {
|
||||
margin: 0;
|
||||
|
||||
@@ -316,6 +316,10 @@
|
||||
// ====================
|
||||
.dashboard .my-courses {
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
// UI: individual course item
|
||||
.course {
|
||||
@include box-sizing(box);
|
||||
|
||||
Reference in New Issue
Block a user