Skip to content

Commit

Permalink
fix: remove optimizeLegibility for headers (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
agreatscott committed Oct 27, 2021
1 parent 774e3f7 commit 24883dd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/scss/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
font-family: var(--nds-font-family);
text-rendering: geometricPrecision;

h1,h2,h3,h4 {
h1,
h2,
h3,
h4 {
font-family: var(--nds-header-font);
color: var(--nds-black);
font-weight: 700;
text-rendering: optimizeLegibility; /* enables Matiere ligatures */
}

h1,h2,h3 {
h1,
h2,
h3 {
margin-top: 0;
margin-bottom: 0;
}
Expand Down Expand Up @@ -64,11 +68,11 @@
line-height: 20px;

&.nds-light {
font-weight: 600
font-weight: 600;
}

&.nds-lighter {
font-weight: 400
font-weight: 400;
}
}

Expand All @@ -78,7 +82,7 @@
font-weight: 600;

&.nds-light {
font-weight: 400
font-weight: 400;
}
}

Expand All @@ -88,8 +92,8 @@
font-weight: 600;

&.nds-light {
font-weight: 400
font-weight: 400;
}
}
}
}
}

0 comments on commit 24883dd

Please sign in to comment.