Commit 8076da13 by clrux

Merge pull request #9775 from edx/clrux/ac-147

Addressing contrast and hover states for 'clear filters' button on the find courses page
parents 60c439c9 e3035a8f
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<div id="discovery-form" class="wrapper-search-context"> <div id="discovery-form" class="wrapper-search-context">
<div id="discovery-message" class="search-status-label"></div> <div id="discovery-message" class="search-status-label"></div>
<form class="wrapper-search-input"> <form class="wrapper-search-input">
<input class="discovery-input" placeholder="Search for a course" type="text"/> <label for="discovery-input" class="sr">Search for a course</label>
<input id="discovery-input" class="discovery-input" placeholder="Search for a course" type="text"/>
<button type="submit" class="button postfix discovery-submit" aria-label="Search"> <button type="submit" class="button postfix discovery-submit" aria-label="Search">
<i class="icon fa fa-search" aria-hidden="true"></i> <i class="icon fa fa-search" aria-hidden="true"></i>
<div aria-live="polite" aria-relevant="all"> <div aria-live="polite" aria-relevant="all">
......
...@@ -376,9 +376,14 @@ $facet-background-color: #007db8; ...@@ -376,9 +376,14 @@ $facet-background-color: #007db8;
@extend %t-strong; @extend %t-strong;
margin: ($baseline/2); margin: ($baseline/2);
width: auto; width: auto;
color: $m-blue-d5; color: $blue-d1; // WCAG 2.0 AA requirements
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
&:hover,
&:focus {
background: $gray-l4;
}
} }
.flt-right { .flt-right {
...@@ -509,7 +514,11 @@ $facet-background-color: #007db8; ...@@ -509,7 +514,11 @@ $facet-background-color: #007db8;
color: $facet-text-color; color: $facet-text-color;
.count { .count {
color: $gray-l4; color: $gray;
.count-number {
display: none;
}
} }
.count:before { .count:before {
......
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
<div id="discovery-form" role="search" aria-label="course" class="wrapper-search-context"> <div id="discovery-form" role="search" aria-label="course" class="wrapper-search-context">
<div id="discovery-message" class="search-status-label"></div> <div id="discovery-message" class="search-status-label"></div>
<form class="wrapper-search-input"> <form class="wrapper-search-input">
<input class="discovery-input" placeholder="${_('Search for a course')}" type="text"/> <label for="discovery-input" class="sr">${_('Search for a course')}</label>
<input id="discovery-input" class="discovery-input" placeholder="${_('Search for a course')}" type="text"/>
<button type="submit" class="button postfix discovery-submit" aria-label="${_('Search')}"> <button type="submit" class="button postfix discovery-submit" aria-label="${_('Search')}">
<i class="icon fa fa-search" aria-hidden="true"></i> <i class="icon fa fa-search" aria-hidden="true"></i>
<div aria-live="polite" aria-relevant="all"> <div aria-live="polite" aria-relevant="all">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<button data-facet="<%= facet %>" data-value="<%= term %>" data-text="<%= name %>" class="facet-option discovery-button <%= selected ? 'selected' : '' %>"> <button data-facet="<%= facet %>" data-value="<%= term %>" data-text="<%= name %>" class="facet-option discovery-button <%= selected ? 'selected' : '' %>">
<%= name %> <%= name %>
<span class="count"> <span class="count">
<%= count %> <span class="count-number"><%= count %></span>
</span> </span>
</button> </button>
</li> </li>
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