Skip to content

Commit

Permalink
Accessibility: allow 'Clear Filters' button to receive keyboard focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondap committed Mar 19, 2024
1 parent 45b61cb commit dd63f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions static/css/registry.css
Original file line number Diff line number Diff line change
Expand Up @@ -933,11 +933,11 @@ a.box:active {
}
.button.is-white:hover, .button.is-white.is-hovered {
background-color: #f9f9f9;
border-color: transparent;
border-color: #d6d6d6;
color: hsl(0deg, 0%, 4%);
}
.button.is-white:focus, .button.is-white.is-focused {
border-color: transparent;
border-color: #d6d6d6;
color: hsl(0deg, 0%, 4%);
}
.button.is-white:focus:not(:active), .button.is-white.is-focused:not(:active) {
Expand Down
2 changes: 1 addition & 1 deletion views/shared/_filter_chips.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ end }}

{{ if .filterChips }}
<button class="filter-clear button is-compact is-white" onclick="removeAllFilters()">Clear Filters</button>
<button class="filter-clear button is-compact is-white" tabindex="0" onclick="removeAllFilters()">Clear Filters</button>
{{ end }}
</div>

Expand Down

0 comments on commit dd63f85

Please sign in to comment.