Skip to content

Commit 0923a5d

Browse files
Align fonts with GOV.UK Frontend (via .govuk-form-group only)
Only add “GDS Transport” to the font stack when using `.govuk-form-group` wrappers
1 parent e4b560b commit 0923a5d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

dist/accessible-autocomplete.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/accessible-autocomplete.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/autocomplete.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@
152152
font-weight: 400;
153153
}
154154

155+
/* Try font "GDS Transport" for GOV.UK form groups */
156+
.govuk-form-group .autocomplete__hint,
157+
.govuk-form-group .autocomplete__input,
158+
.govuk-form-group .autocomplete__option {
159+
font-family: "GDS Transport", arial, sans-serif;
160+
-webkit-font-smoothing: antialiased;
161+
-moz-osx-font-smoothing: grayscale;
162+
}
163+
155164
.autocomplete__hint,
156165
.autocomplete__option {
157166
padding: 5px;

0 commit comments

Comments
 (0)