Commit 0612e914 by Peter Fogg

Various accessibility fixes for Teams.

Update teams breadcrumb aria-label, make team membership display as a
<ul>, fix contrast issues, and remove an extraneous angle bracket.
parent 2b6781e7
<div class="page-header-search wrapper-search-<%= type %>"> <div class="page-header-search wrapper-search-<%= type %>">
<form class="search-form"> <form class="search-form">
<div class="wrapper-search-input"> <div class="wrapper-search-input">
<label for="search-<%= type %>" class="search-label">><%- searchLabel %></label> <label for="search-<%= type %>" class="search-label"><%- searchLabel %></label>
<input id="search-<%= type %>" class="search-field" type="text" value="<%- searchString %>" placeholder="<%- searchLabel %>" /> <input id="search-<%= type %>" class="search-field" type="text" value="<%- searchString %>" placeholder="<%- searchLabel %>" />
<button type="button" class="action action-clear <%= searchLabel ? '' : 'is-hidden' %>" aria-label="<%- gettext('Clear search') %>"> <button type="button" class="action action-clear <%= searchLabel ? '' : 'is-hidden' %>" aria-label="<%- gettext('Clear search') %>">
<i class="icon fa fa-times-circle" aria-hidden="true"></i><span class="sr"><%- gettext('Search') %></span> <i class="icon fa fa-times-circle" aria-hidden="true"></i><span class="sr"><%- gettext('Search') %></span>
......
...@@ -508,7 +508,7 @@ class TeamPage(CoursePage, PaginatedUIMixin, BreadcrumbsMixin): ...@@ -508,7 +508,7 @@ class TeamPage(CoursePage, PaginatedUIMixin, BreadcrumbsMixin):
def click_first_profile_image(self): def click_first_profile_image(self):
"""Clicks on first team member's profile image""" """Clicks on first team member's profile image"""
self.q(css='.page-content-secondary .members-info > .team-member').first.click() self.q(css='.page-content-secondary .members-info .team-member').first.click()
@property @property
def first_member_username(self): def first_member_username(self):
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
TeamMembersEditView, TeamProfileHeaderActionsView, TeamUtils, InstructorToolsView, teamsTemplate) { TeamMembersEditView, TeamProfileHeaderActionsView, TeamUtils, InstructorToolsView, teamsTemplate) {
var TeamsHeaderModel = HeaderModel.extend({ var TeamsHeaderModel = HeaderModel.extend({
initialize: function () { initialize: function () {
_.extend(this.defaults, {nav_aria_label: gettext('teams')}); _.extend(this.defaults, {nav_aria_label: gettext('Topics')});
HeaderModel.prototype.initialize.call(this); HeaderModel.prototype.initialize.call(this);
} }
}); });
......
<span class="team-member"> <li>
<span class="team-member">
<a class="member-profile" href="<%= memberProfileUrl %>"> <a class="member-profile" href="<%= memberProfileUrl %>">
<p class="tooltip-custom"><%= username %></p> <p class="tooltip-custom"><%= username %></p>
<img class="image-url" src="<%= imageUrl %>" alt="profile page" /> <img class="image-url" src="<%= imageUrl %>" alt="profile page" />
</a> </a>
</span> </span>
</li>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<% if (hasMembers) { %> <% if (hasMembers) { %>
<span class="sr"><%- gettext("Team member profiles") %></span> <span class="sr"><%- gettext("Team member profiles") %></span>
<% } %> <% } %>
<div class="members-info"></div> <ul class="members-info"></ul>
</div> </div>
<div class="team-capacity"> <div class="team-capacity">
......
...@@ -275,6 +275,14 @@ ...@@ -275,6 +275,14 @@
} }
} }
.members-info {
margin: 0;
padding: 0;
li {
display: inline;
}
}
.edit-members { .edit-members {
@extend %ui-no-list; @extend %ui-no-list;
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
.listing-tools { .listing-tools {
@extend %t-copy-sub1; @extend %t-copy-sub1;
margin: ($baseline/10) $baseline; margin: ($baseline/10) $baseline;
color: $gray-l1; color: $gray-d1;
label { // override label { // override
color: inherit; color: inherit;
...@@ -716,11 +716,11 @@ ...@@ -716,11 +716,11 @@
.u-field.error { .u-field.error {
input, textarea { input, textarea {
border-color: $error-red; border-color: $danger-red;
} }
.u-field-message-help, .u-field-description-message { .u-field-message-help, .u-field-description-message {
color: $error-red !important; color: $danger-red !important;
} }
} }
......
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