Skip to content

Commit 77c5ba8

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 dbc3052 commit 77c5ba8

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

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.

src/autocomplete.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@
155155
font-weight: 400;
156156
}
157157

158+
/* Try font "GDS Transport" for GOV.UK form groups */
159+
.govuk-form-group .autocomplete__hint,
160+
.govuk-form-group .autocomplete__input,
161+
.govuk-form-group .autocomplete__option {
162+
font-family: "GDS Transport", arial, sans-serif;
163+
-webkit-font-smoothing: antialiased;
164+
-moz-osx-font-smoothing: grayscale;
165+
}
166+
158167
.autocomplete__hint,
159168
.autocomplete__option {
160169
padding: 5px;

0 commit comments

Comments
 (0)