Skip to content

Commit

Permalink
Merge pull request #837 from alphagov/relative-line-height
Browse files Browse the repository at this point in the history
Use relative line-height
  • Loading branch information
Dave House authored Jun 28, 2018
2 parents 26b0487 + 4dcfd1f commit 41a7bc1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@

([PR #N](https://github.com/alphagov/govuk-frontend/pull/N))


🔧 Fixes:

- Use relative line-height
Update typography styles to use relative, unitless line-height
([PR #837](https://github.com/alphagov/govuk-frontend/pull/837))

- Update Crown copyright link
Update the Crown copyright link on the National Archives so
we don't send users on an unnecessary redirect.
Expand Down
32 changes: 16 additions & 16 deletions src/settings/_typography-responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ $govuk-typography-scale: (
80: (
null: (
font-size: 53px,
line-height: 55px
line-height: 1.0377358491 // 55px
),
tablet: (
font-size: 80px,
line-height: 80px
line-height: 1 // 80px
),
print: (
font-size: 53pt,
Expand All @@ -40,11 +40,11 @@ $govuk-typography-scale: (
48: (
null: (
font-size: 32px,
line-height: 35px
line-height: 1.09375 // 35px
),
tablet: (
font-size: 48px,
line-height: 50px
line-height: 1.0416666667 // 50px
),
print: (
font-size: 32pt,
Expand All @@ -54,11 +54,11 @@ $govuk-typography-scale: (
36: (
null: (
font-size: 24px,
line-height: 25px
line-height: 1.0416666667 // 25px
),
tablet: (
font-size: 36px,
line-height: 40px
line-height: 1.1111111111 // 40px
),
print: (
font-size: 24pt,
Expand All @@ -68,11 +68,11 @@ $govuk-typography-scale: (
27: (
null: (
font-size: 18px,
line-height: 20px
line-height: 1.1111111111 // 20px
),
tablet: (
font-size: 27px,
line-height: 30px
line-height: 1.1111111111 // 30px
),
print: (
font-size: 18pt,
Expand All @@ -82,11 +82,11 @@ $govuk-typography-scale: (
24: (
null: (
font-size: 18px,
line-height: 20px
line-height: 1.1111111111 // 20px
),
tablet: (
font-size: 24px,
line-height: 30px
line-height: 1.25 // 30px
),
print: (
font-size: 18pt,
Expand All @@ -96,11 +96,11 @@ $govuk-typography-scale: (
19: (
null: (
font-size: 16px,
line-height: 20px
line-height: 1.25 // 20px
),
tablet: (
font-size: 19px,
line-height: 25px
line-height: 1.3157894737 // 25px
),
print: (
font-size: 14pt,
Expand All @@ -110,11 +110,11 @@ $govuk-typography-scale: (
16: (
null: (
font-size: 14px,
line-height: 16px
line-height: 1.1428571429 // 16px
),
tablet: (
font-size: 16px,
line-height: 20px
line-height: 1.25 // 20px
),
print: (
font-size: 14pt,
Expand All @@ -124,11 +124,11 @@ $govuk-typography-scale: (
14: (
null: (
font-size: 12px,
line-height: 15px
line-height: 1.25 // 15px
),
tablet: (
font-size: 14px,
line-height: 20px
line-height: 1.4285714286 // 20px
),
print: (
font-size: 12pt,
Expand Down

0 comments on commit 41a7bc1

Please sign in to comment.