Skip to content

Commit

Permalink
Merge pull request #1862 from alphagov/box-sizing-warning-icon
Browse files Browse the repository at this point in the history
Fix display of warning text icon when border-box box sizing is applied globally
  • Loading branch information
36degrees committed Jul 16, 2020
2 parents f57d338 + 317e339 commit 75c3ddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ We’ve made fixes to GOV.UK Frontend in the following pull requests:
- [#1842: Preserve the state of conditional reveals when navigating 'back' in the browser](https://github.com/alphagov/govuk-frontend/pull/1842)
- [#1855: Hint component can render block-level elements as valid HTML](https://github.com/alphagov/govuk-frontend/pull/1855)
- [#1861: Fix the display of checkboxes when border-box box sizing is applied globally](https://github.com/alphagov/govuk-frontend/pull/1861)
- [#1862: Fix display of warning text icon when border-box box sizing is applied globally #1862](https://github.com/alphagov/govuk-frontend/pull/1862)

## 3.7.0 (Feature release)

Expand Down
6 changes: 4 additions & 2 deletions src/govuk/components/warning-text/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
.govuk-warning-text__icon {
@include govuk-font($size: false, $weight: bold);

box-sizing: border-box;

display: inline-block;

position: absolute;
left: 0;

min-width: 29px;
min-height: 29px;
min-width: 35px;
min-height: 35px;
margin-top: -7px;

@include govuk-media-query($from: tablet) {
Expand Down

0 comments on commit 75c3ddc

Please sign in to comment.