Commit 62cb3ad5 by Christina Roberts Committed by GitHub

Merge pull request #14486 from edx/christina/wiki-round-2

Fix more wiki a11y issues
parents fd7de0ca a15d89c8
...@@ -581,13 +581,6 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -581,13 +581,6 @@ class CourseWikiTest(UniqueCourseTest):
self.course_wiki_page.open_editor() self.course_wiki_page.open_editor()
self.course_wiki_edit_page.wait_for_page() self.course_wiki_edit_page.wait_for_page()
def _check_for_accessibility_errors(self, page, custom_rules=None):
""" Run accessibility check with custom rules, if provided """
if custom_rules is not None:
page.a11y_audit.config.set_rules(custom_rules)
page.a11y_audit.check_for_accessibility_errors()
@attr(shard=1) @attr(shard=1)
def test_edit_course_wiki(self): def test_edit_course_wiki(self):
""" """
...@@ -610,7 +603,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -610,7 +603,7 @@ class CourseWikiTest(UniqueCourseTest):
""" """
Verify the basic accessibility of the wiki page as initially displayed. Verify the basic accessibility of the wiki page as initially displayed.
""" """
self._check_for_accessibility_errors(self.course_wiki_page) self.course_wiki_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') @attr('a11y')
def test_edit_a11y(self): def test_edit_a11y(self):
...@@ -618,7 +611,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -618,7 +611,7 @@ class CourseWikiTest(UniqueCourseTest):
Verify the basic accessibility of edit wiki page. Verify the basic accessibility of edit wiki page.
""" """
self._open_editor() self._open_editor()
self._check_for_accessibility_errors(self.course_wiki_edit_page) self.course_wiki_edit_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') @attr('a11y')
def test_changes_a11y(self): def test_changes_a11y(self):
...@@ -628,7 +621,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -628,7 +621,7 @@ class CourseWikiTest(UniqueCourseTest):
self.course_wiki_page.show_history() self.course_wiki_page.show_history()
history_page = CourseWikiHistoryPage(self.browser, self.course_id, self.course_info) history_page = CourseWikiHistoryPage(self.browser, self.course_id, self.course_info)
history_page.wait_for_page() history_page.wait_for_page()
self._check_for_accessibility_errors(history_page) history_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') @attr('a11y')
def test_children_a11y(self): def test_children_a11y(self):
...@@ -638,13 +631,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -638,13 +631,7 @@ class CourseWikiTest(UniqueCourseTest):
self.course_wiki_page.show_children() self.course_wiki_page.show_children()
children_page = CourseWikiChildrenPage(self.browser, self.course_id, self.course_info) children_page = CourseWikiChildrenPage(self.browser, self.course_id, self.course_info)
children_page.wait_for_page() children_page.wait_for_page()
custom_rules = { children_page.a11y_audit.check_for_accessibility_errors()
'ignore': [
'label', # TNL-6440
'data-table' # TNL-6439
]
}
self._check_for_accessibility_errors(children_page, custom_rules)
@attr(shard=1) @attr(shard=1)
......
...@@ -59,7 +59,6 @@ table { ...@@ -59,7 +59,6 @@ table {
a { a {
&:hover, &:focus { &:hover, &:focus {
color: $pink;
text-decoration: none !important; text-decoration: none !important;
} }
} }
......
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
float: right; float: right;
} }
.form-search .input-prepend>label {
display: inline-block;
vertical-align: bottom;
}
@include clearfix(); @include clearfix();
.breadcrumbs-header { .breadcrumbs-header {
...@@ -746,17 +751,9 @@ ...@@ -746,17 +751,9 @@
} }
.filter-clear { .filter-clear {
margin-right: ($baseline/2); margin-left: ($baseline/2);
margin-top: ($baseline/2); margin-top: ($baseline/2);
font-size: .9em; font-size: .9em;
a {
color: $uxpl-gray-base;
&:hover, &:focus {
color: #777;
}
}
} }
.table.table-striped { .table.table-striped {
...@@ -773,6 +770,12 @@ ...@@ -773,6 +770,12 @@
margin-left: 3px; margin-left: 3px;
} }
a {
&:hover, &:focus {
font-weight: bold;
}
}
tr:nth-child(even) { tr:nth-child(even) {
background: $gray-l6; background: $gray-l6;
} }
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
# Third-party: # Third-party:
git+https://github.com/cyberdelia/django-pipeline.git@1.5.3#egg=django-pipeline==1.5.3 git+https://github.com/cyberdelia/django-pipeline.git@1.5.3#egg=django-pipeline==1.5.3
git+https://github.com/edx/django-wiki.git@v0.0.9#egg=django-wiki==0.0.9 git+https://github.com/edx/django-wiki.git@v0.0.10#egg=django-wiki==0.0.10
git+https://github.com/edx/django-openid-auth.git@0.8#egg=django-openid-auth==0.8 git+https://github.com/edx/django-openid-auth.git@0.8#egg=django-openid-auth==0.8
git+https://github.com/edx/MongoDBProxy.git@25b99097615bda06bd7cdfe5669ed80dc2a7fed0#egg=MongoDBProxy==0.1.0 git+https://github.com/edx/MongoDBProxy.git@25b99097615bda06bd7cdfe5669ed80dc2a7fed0#egg=MongoDBProxy==0.1.0
git+https://github.com/edx/nltk.git@2.0.6#egg=nltk==2.0.6 git+https://github.com/edx/nltk.git@2.0.6#egg=nltk==2.0.6
......
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