Skip to content

Commit 3cfa75f

Browse files
colinrotherhamromaricpascal
authored andcommitted
Align element sizes with GOV.UK Frontend
1 parent 92ee241 commit 3cfa75f

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

dist/accessible-autocomplete.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/accessible-autocomplete.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/autocomplete.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
border-radius: 0; /* Safari 10 on iOS adds implicit border rounding. */
1010
box-sizing: border-box;
1111
margin-bottom: 0; /* BUG: Safari 10 on macOS seems to add an implicit margin. */
12+
line-height: 1.25;
13+
height: 2.5rem;
1214
width: 100%;
1315
}
1416

@@ -33,7 +35,7 @@
3335
}
3436

3537
.autocomplete__input--show-all-values {
36-
padding: 5px 34px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
38+
padding: 5px 35px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
3739
cursor: pointer;
3840
}
3941

@@ -146,8 +148,8 @@
146148
.autocomplete__hint,
147149
.autocomplete__input,
148150
.autocomplete__option {
149-
font-size: 16px;
150-
line-height: 1.25;
151+
font-size: 1rem;
152+
font-weight: 400;
151153
}
152154

153155
.autocomplete__hint,
@@ -159,7 +161,7 @@
159161
.autocomplete__hint,
160162
.autocomplete__input,
161163
.autocomplete__option {
162-
font-size: 19px;
163-
line-height: 1.31579;
164+
font-size: 1.1875rem;
165+
line-height: 1.3157894737;
164166
}
165167
}

0 commit comments

Comments
 (0)