Skip to content

Commit

Permalink
Fix stray line on checkbox in IE11
Browse files Browse the repository at this point in the history
IE sometimes miscalculates the border width of a rotated element
resulting in a thin border as shown in #518.

Setting a transparent border fixes this.
  • Loading branch information
gemmaleigh committed Jul 14, 2017
1 parent 1dbe624 commit a346da6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
transform: rotate(-45deg);
border: solid;
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;

opacity: 0;

Expand Down

0 comments on commit a346da6

Please sign in to comment.