changes header levels for a11y

TNL-6347
This commit is contained in:
Albert St. Aubin
2017-02-15 07:48:14 -05:00
parent 078974d24a
commit 7c7c27183f
28 changed files with 130 additions and 143 deletions

View File

@@ -15,7 +15,6 @@ h2 {
font: normal 1.2em/1.2em $sans-serif;
letter-spacing: 1px;
margin-bottom: ($baseline*0.75);
text-transform: uppercase;
-webkit-font-smoothing: antialiased;
}
@@ -289,4 +288,4 @@ th {
}
}
}
}
}

View File

@@ -1,5 +1,5 @@
<form class="forum-new-post-form">
<h3 class="thread-title"><%- gettext("Add a Post") %></h3>
<h2 class="thread-title"><%- gettext("Add a Post") %></h2>
<% if (mode === 'inline') { %>
<button class="btn-default add-post-cancel">
<span class="sr"><%- gettext('Cancel') %></span>

View File

@@ -1,4 +1,4 @@
<h3 class="thread-title"><%- gettext("Editing post") %></h3>
<h2 class="thread-title"><%- gettext("Editing post") %></h2>
<ul class="post-errors"></ul>
<div class="forum-edit-post-form-wrapper"></div>
<div class="post-field">

View File

@@ -17,7 +17,7 @@
</div>
<% } %>
<div class="post-header-content">
<h4 class="post-title"><%- title %></h4>
<h2 class="post-title"><%- title %></h2>
<p class="posted-details">
<%
var timeAgoHtml = interpolate(

View File

@@ -24,7 +24,7 @@
</div>
<% if (can_create_comment && !readOnly) { %>
<form class="discussion-reply-new" data-id="<%- id %>">
<h4><%- gettext("Add a response:") %></h4>
<h3><%- gettext("Add a response:") %></h3>
<ul class="discussion-errors"></ul>
<div class="reply-body" data-id="<%- id %>"></div>
<div class="reply-post-control">

View File

@@ -45,7 +45,7 @@ class CourseWikiPage(CoursePage):
"""
Return the name of the article
"""
return str(self.q(css='.main-article h1').text[0])
return str(self.q(css='.main-article .entry-title').text[0])
class CourseWikiSubviewPage(CoursePage): # pylint: disable=abstract-method