Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/nhsuk/nhsuk-frontend into a…
Browse files Browse the repository at this point in the history
…djust-error-summary-margin
  • Loading branch information
anandamaryon1 committed Jul 24, 2024
2 parents 3d08075 + 817d9e8 commit 5b1c88b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

- Change "Contact us" in the footer link examples to "Give us feedback" ([PR 972](https://github.com/nhsuk/nhsuk-frontend/pull/972))
- Remove the pattern from the date input component
- Adjust errorSummary bottom margin ([PR 947](https://github.com/nhsuk/nhsuk-frontend/pull/973))
- Adjust errorSummary bottom margin ([PR 973](https://github.com/nhsuk/nhsuk-frontend/pull/973))
- Fix height of select component in Safari ([PR 987](https://github.com/nhsuk/nhsuk-frontend/pull/987))
- Set minimum width of select component ([PR 987](https://github.com/nhsuk/nhsuk-frontend/pull/987))

:new: **New features**

Expand Down
12 changes: 11 additions & 1 deletion packages/components/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
COMPONENTS/ #SELECT
========================================================================== */

/**
* Select input sizing
* 1. Uses rems so that safari input scales with font size
* 2. This min-width was chosen because:
* - it makes the Select wider than it is tall (which is what users expect)
* - 20ex + 3ex matches the 'width-10' variant of the input component
* - it fits comfortably on screens as narrow as 240px wide
*/

.nhsuk-select {
@include nhsuk-font(19);

border: $nhsuk-border-width-form-element solid $nhsuk-form-border-color;
box-sizing: border-box;
min-height: 40px;
height: 2.5rem; /* [1] */
min-width: 20ex + 3ex; /* [2] */
max-width: 100%;
padding: nhsuk-spacing(1);

Expand Down

0 comments on commit 5b1c88b

Please sign in to comment.