Skip to content

Commit

Permalink
Do not set font-size on the html element
Browse files Browse the repository at this point in the history
Doing this makes it breaks users font-size preferences in some browsers (such as Chrome) – see twbs/bootstrap#19460 for more details. We should instead _assume_ the root font-size is 16px - the point being that if it’s not then the text should adjust accordingly.
  • Loading branch information
36degrees committed Jul 4, 2018
1 parent ce1cfd2 commit 346b9d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/_template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@

// Applied to the <html> element
.govuk-template {
// Set the overall page background color to the same colour as used by the
// Set the overall page background colour to the same colour as used by the
// footer to give the illusion of a long footer.
background-color: $govuk-canvas-background-colour;

// Set the root font-size so that we can define our font-sizes in rem
// throughout
font-size: $govuk-root-font-size;
}

// Applied to the <body> element
Expand Down

0 comments on commit 346b9d1

Please sign in to comment.