Skip to content

Commit

Permalink
Align fonts with GOV.UK Frontend (via .govuk-form-group only)
Browse files Browse the repository at this point in the history
Only add “GDS Transport” to the font stack when using `.govuk-form-group` wrappers
  • Loading branch information
colinrotherham committed Jan 18, 2024
1 parent dbc3052 commit 77c5ba8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/accessible-autocomplete.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/autocomplete.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@
font-weight: 400;
}

/* Try font "GDS Transport" for GOV.UK form groups */
.govuk-form-group .autocomplete__hint,
.govuk-form-group .autocomplete__input,
.govuk-form-group .autocomplete__option {
font-family: "GDS Transport", arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.autocomplete__hint,
.autocomplete__option {
padding: 5px;
Expand Down

0 comments on commit 77c5ba8

Please sign in to comment.