Skip to content

Commit

Permalink
Use govuk-compatibility mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
danacotoran committed Oct 27, 2020
1 parent f9f2de3 commit 69171a9
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ $large-input-size: 50px;
}
}

// stylelint-disable selector-max-id
.gem-c-search__input[type="search"],
#global-header .gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
.gem-c-search__input[type="search"] { // overly specific to prevent some overrides from outside
@include govuk-font($size: 19, $line-height: (28 / 19));

padding: 6px;
margin: 0;
width: 100%;
Expand Down Expand Up @@ -73,6 +70,13 @@ $large-input-size: 50px;
}
}

@include govuk-compatibility(govuk_template) {
// ultra specific rule overrides focus styling from govuk_template
#global-header .gem-c-search__input[type="search"]:focus { // stylelint-disable selector-max-id
@extend .gem-c-search__input[type="search"]:focus; // stylelint-disable scss/at-extend-no-missing-placeholder
}
}

.gem-c-search__submit {
border: 0;
cursor: pointer;
Expand Down

0 comments on commit 69171a9

Please sign in to comment.