Skip to content

Commit

Permalink
Merge pull request #1574 from alphagov/make-form-elements-scalable
Browse files Browse the repository at this point in the history
Make form elements scale correctly when text resized by user
  • Loading branch information
hannalaakso authored Sep 16, 2019
2 parents 882333f + fdf64d6 commit bf8bedf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Fixes
- [Pull request #1574: Make form elements scale correctly when text resized by user](https://github.com/alphagov/govuk-frontend/pull/1574).

## 3.2.0 (Feature release)

### New features
Expand Down
3 changes: 3 additions & 0 deletions src/govuk/components/input/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
box-sizing: border-box;
width: 100%;
height: 40px;
@if $govuk-typography-use-rem {
height: govuk-px-to-rem(40px);
}
margin-top: 0;

padding: govuk-spacing(1);
Expand Down
3 changes: 3 additions & 0 deletions src/govuk/components/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
box-sizing: border-box; // should this be global?
max-width: 100%;
height: 40px;
@if $govuk-typography-use-rem {
height: govuk-px-to-rem(40px);
}
padding: govuk-spacing(1); // was 5px 4px 4px - size of it should be adjusted to match other form elements
border: $govuk-border-width-form-element solid $govuk-input-border-colour;

Expand Down

0 comments on commit bf8bedf

Please sign in to comment.