diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 46c7260724..980a277c38 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,8 @@ These are notable changes in edx-platform. This is a rolling list of changes, in roughly chronological order, most recent first. Add your entries at or near the top. Include a label indicating the component affected. +Common: Add skip links for accessibility to CMS and LMS (LMS-1311) + Studio: Change course overview page, checklists, assets, and course staff management page URLs to a RESTful interface. Also removed "\listing", which duplicated "\index". diff --git a/cms/static/coffee/spec/main.coffee b/cms/static/coffee/spec/main.coffee index bd349a97e3..379e5efc17 100644 --- a/cms/static/coffee/spec/main.coffee +++ b/cms/static/coffee/spec/main.coffee @@ -30,6 +30,7 @@ requirejs.config({ "xmodule": "xmodule_js/src/xmodule", "xblock": "xmodule_js/common_static/coffee/src/xblock", "utility": "xmodule_js/common_static/js/src/utility", + "accessibility": "xmodule_js/common_static/js/src/accessibility_tools", "sinon": "xmodule_js/common_static/js/vendor/sinon-1.7.1", "squire": "xmodule_js/common_static/js/vendor/Squire", "jasmine-jquery": "xmodule_js/common_static/js/vendor/jasmine-jquery", diff --git a/cms/static/sass/_base.scss b/cms/static/sass/_base.scss index 7735a83297..eb7bf55b30 100644 --- a/cms/static/sass/_base.scss +++ b/cms/static/sass/_base.scss @@ -826,10 +826,32 @@ hr.divide { word-wrap: break-word; } +// ui - semantic + visual divider hr.divider { @extend %cont-text-sr; } +// ui - skipnav +.nav-skip { + @include font-size(13); + display: block; + position: absolute; + left: 0px; + top: -($baseline*30); + width: 1px; + height: 1px; + overflow: hidden; + background: $white; + border-bottom: 1px solid $gray-l4; + padding: ($baseline*0.75) ($baseline/2); + + &:focus, &:active { + position: static; + width: auto; + height: auto; + } +} + // ==================== // js dependant diff --git a/cms/templates/base.html b/cms/templates/base.html index ded53b8188..7968b897dd 100644 --- a/cms/templates/base.html +++ b/cms/templates/base.html @@ -1,4 +1,5 @@ ## -*- coding: utf-8 -*- +<%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='static_content.html'/> @@ -29,211 +30,209 @@
- - + }; + + -## js templates - + ## js templates + % if context_course: - + % endif @@ -242,7 +241,9 @@ require(['js/models/course'], function(Course) { +