Skip to content

Commit

Permalink
Align element sizes with GOV.UK Frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Jan 22, 2024
1 parent 6a4c686 commit a3e0356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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.

12 changes: 7 additions & 5 deletions src/autocomplete.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
border-radius: 0; /* Safari 10 on iOS adds implicit border rounding. */
box-sizing: border-box;
margin-bottom: 0; /* BUG: Safari 10 on macOS seems to add an implicit margin. */
line-height: 1.25;
height: 2.5rem;
width: 100%;
}

Expand All @@ -33,7 +35,7 @@
}

.autocomplete__input--show-all-values {
padding: 5px 34px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
padding: 5px 35px 5px 5px; /* Space for arrow. Other padding should match .autocomplete__input--default. */
cursor: pointer;
}

Expand Down Expand Up @@ -146,8 +148,8 @@
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 16px;
line-height: 1.25;
font-size: 1rem;
font-weight: 400;
}

.autocomplete__hint,
Expand All @@ -159,7 +161,7 @@
.autocomplete__hint,
.autocomplete__input,
.autocomplete__option {
font-size: 19px;
line-height: 1.31579;
font-size: 1.1875rem;
line-height: 1.3157894737;
}
}

0 comments on commit a3e0356

Please sign in to comment.