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 24, 2024
1 parent d3a7c90 commit 247e72a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
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.

2 changes: 1 addition & 1 deletion dist/accessible-autocomplete.min.css.map

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 @@ -149,6 +149,15 @@
line-height: 1.25;
}

/* 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 247e72a

Please sign in to comment.