Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit be7d030

Browse files
authored
Merge pull request #93 from thepensionsregulator/bug-typography-letter-spacing
typography updated with new line-height and letter-spacing
2 parents 2e4a17f + d21d6bf commit be7d030

2 files changed

Lines changed: 17 additions & 11 deletions

File tree

packages/core/src/components/globals/globals.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { Flex } from './globals';
2020
flex: '1 1 auto',
2121
justifyContent: 'space-between',
2222
bg: 'accents.2',
23-
color: 'background',
23+
color: 'white',
2424
p: 3,
2525
}}
2626
>

packages/core/src/components/typography/typography.module.scss

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,64 @@
44
font-family: $fonts-sans-serif;
55
font-weight: $font-weight-2;
66
font-size: $font-size-6;
7-
letter-spacing: 0.4px;
7+
letter-spacing: 0px;
8+
line-height: 1em;
89
}
910

1011
.h2 {
1112
font-family: $fonts-sans-serif;
1213
font-weight: $font-weight-2;
1314
font-size: $font-size-5;
14-
letter-spacing: 0.4px;
15+
letter-spacing: 0px;
16+
line-height: 1em;
1517
}
1618

1719
.h3 {
1820
font-family: $fonts-sans-serif;
1921
font-weight: $font-weight-1;
2022
font-size: $font-size-4;
21-
letter-spacing: 0.4px;
23+
letter-spacing: 0px;
24+
line-height: 1em;
2225
}
2326

2427
.h4 {
2528
font-family: $fonts-sans-serif;
2629
font-weight: $font-weight-3;
2730
font-size: $font-size-3;
28-
letter-spacing: 0.4px;
31+
letter-spacing: 0px;
32+
line-height: 1em;
2933
}
3034

3135
.h5 {
3236
font-family: $fonts-sans-serif;
3337
font-weight: $font-weight-2;
3438
font-size: $font-size-2;
35-
letter-spacing: 0.4px;
39+
letter-spacing: 0px;
40+
line-height: 1em;
3641
}
3742

3843
.h6 {
3944
font-family: $fonts-sans-serif;
4045
font-weight: $font-weight-2;
4146
font-size: $font-size-1;
42-
letter-spacing: 0.4px;
47+
letter-spacing: 0px;
48+
line-height: 1em;
4349
}
4450

4551
.p {
4652
font-family: $fonts-sans-serif;
4753
font-weight: $font-weight-2;
4854
font-size: $font-size-2;
49-
letter-spacing: 0.9px;
50-
line-height: 1.4;
55+
letter-spacing: 0px;
56+
line-height: 1em;
5157
}
5258

5359
.span {
5460
font-family: $fonts-sans-serif;
5561
font-weight: $font-weight-2;
5662
font-size: $font-size-2;
57-
letter-spacing: 0.9px;
58-
line-height: 1.4;
63+
letter-spacing: 0px;
64+
line-height: 1em;
5965
}
6066

6167
.hr {

0 commit comments

Comments
 (0)