Skip to content

Commit af440f9

Browse files
committed
allow sans headlines to be larger
1 parent 6df0cd0 commit af440f9

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

dotcom-rendering/src/components/CardHeadline.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ import {
1616
textSans15,
1717
textSans17,
1818
textSans20,
19+
textSans24,
20+
textSans28,
21+
textSans34,
1922
textSansBold12,
2023
textSansBold15,
2124
textSansBold17,
2225
textSansBold20,
26+
textSansBold24,
27+
textSansBold28,
28+
textSansBold34,
2329
until,
2430
} from '@guardian/source/foundations';
2531
import { Link, SvgExternal } from '@guardian/source/react-components';
@@ -102,12 +108,12 @@ const fontFamilies = {
102108
* Line height for sans style headlines for labs is overridden to match that of other headlines (1.15)
103109
*/
104110
textSansBold: {
105-
xxxlarge: `${textSansBold20}\n\tline-height: 1.15;\n`,
106-
xxlarge: `${textSansBold20}\n\tline-height: 1.15;\n`,
107-
xlarge: `${textSansBold20}\n\tline-height: 1.15;\n`,
108-
large: `${textSansBold20}\n\tline-height: 1.15;\n`,
109-
medium: `${textSansBold20}\n\tline-height: 1.15;\n`,
110-
small: `${textSansBold20}\n\tline-height: 1.15;\n`,
111+
xxxlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
112+
xxlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
113+
xlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
114+
large: `${textSansBold34}\n\tline-height: 1.15;\n`,
115+
medium: `${textSansBold28}\n\tline-height: 1.15;\n`,
116+
small: `${textSansBold24}\n\tline-height: 1.15;\n`,
111117
xsmall: `${textSansBold20}\n\tline-height: 1.15;\n`,
112118
xxsmall: `${textSansBold17}\n\tline-height: 1.15;\n`,
113119
xxxsmall: `${textSansBold15}\n\tline-height: 1.15;\n`,
@@ -118,12 +124,12 @@ const fontFamilies = {
118124
* Line height for sans style headlines for labs is overridden to match that of other headlines (1.15)
119125
*/
120126
textSans: {
121-
xxxlarge: `${textSans20}\n\tline-height: 1.15;\n`,
122-
xxlarge: `${textSans20}\n\tline-height: 1.15;\n`,
123-
xlarge: `${textSans20}\n\tline-height: 1.15;\n`,
124-
large: `${textSans20}\n\tline-height: 1.15;\n`,
125-
medium: `${textSans20}\n\tline-height: 1.15;\n`,
126-
small: `${textSans20}\n\tline-height: 1.15;\n`,
127+
xxxlarge: `${textSans34}\n\tline-height: 1.15;\n`,
128+
xxlarge: `${textSans34}\n\tline-height: 1.15;\n`,
129+
xlarge: `${textSans34}\n\tline-height: 1.15;\n`,
130+
large: `${textSans34}\n\tline-height: 1.15;\n`,
131+
medium: `${textSans28}\n\tline-height: 1.15;\n`,
132+
small: `${textSans24}\n\tline-height: 1.15;\n`,
127133
xsmall: `${textSans20}\n\tline-height: 1.15;\n`,
128134
xxsmall: `${textSans17}\n\tline-height: 1.15;\n`,
129135
xxxsmall: `${textSans15}\n\tline-height: 1.15;\n`,

0 commit comments

Comments
 (0)