Skip to content

Commit

Permalink
Fix focus state for search results ‘Close’ button
Browse files Browse the repository at this point in the history
Use the mixin provided by GOV.UK Frontend to ensure that the focus style matches that used by other links.
  • Loading branch information
36degrees committed Jul 19, 2021
1 parent 927a590 commit 3dc4e86
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/assets/stylesheets/modules/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,7 @@ html.has-search-results-open {
cursor: pointer;

&:focus {
background-color: $govuk-focus-colour;
outline: $govuk-focus-width solid transparent;
box-shadow: inset 0 0 0 1px $govuk-focus-colour;
}

&:focus:not(:active):not(:hover) {
border-color: $govuk-focus-colour;
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
box-shadow: 0 2px 0 $govuk-focus-text-colour;
@include govuk-focused-text;
}

&::after {
Expand Down

0 comments on commit 3dc4e86

Please sign in to comment.