Skip to content

Commit

Permalink
Merge pull request #1861 from alphagov/box-sizing-checkboxes
Browse files Browse the repository at this point in the history
Fix the display of checkboxes when border-box box sizing is applied globally
  • Loading branch information
36degrees committed Jul 16, 2020
2 parents 36edb2f + 0cf3375 commit f57d338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ We’ve made fixes to GOV.UK Frontend in the following pull requests:
- [#1838: Correctly camel case SVG attributes in the header and footer](https://github.com/alphagov/govuk-frontend/pull/1838)
- [#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)

## 3.7.0 (Feature release)

Expand Down
11 changes: 6 additions & 5 deletions src/govuk/components/checkboxes/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@
// rotated 45 degrees
.govuk-checkboxes__label::after {
content: "";
box-sizing: border-box;

position: absolute;
top: 11px;
left: 9px;
width: 18px;
height: 7px;
width: 23px;
height: 12px;

transform: rotate(-45deg);
border: solid;
border-width: 0 0 $govuk-border-width $govuk-border-width;
border-width: 0 0 5px 5px;
// Fix bug in IE11 caused by transform rotate (-45deg).
// See: alphagov/govuk_elements/issues/518
border-top-color: transparent;
Expand Down Expand Up @@ -233,8 +234,8 @@
.govuk-checkboxes__label::after {
top: 15px;
left: 6px;
width: 9px;
height: 3.5px;
width: 12px;
height: 6.5px;
border-width: 0 0 3px 3px;
}

Expand Down

0 comments on commit f57d338

Please sign in to comment.