Skip to content

Commit 6a0b16c

Browse files
authored
Fix sans headline size for labs cards (#14643)
1 parent 6df0cd0 commit 6a0b16c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

dotcom-rendering/src/components/CardHeadline.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ import {
2020
textSansBold15,
2121
textSansBold17,
2222
textSansBold20,
23+
textSansBold24,
24+
textSansBold28,
25+
textSansBold34,
2326
until,
2427
} from '@guardian/source/foundations';
2528
import { Link, SvgExternal } from '@guardian/source/react-components';
@@ -102,12 +105,12 @@ const fontFamilies = {
102105
* Line height for sans style headlines for labs is overridden to match that of other headlines (1.15)
103106
*/
104107
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`,
108+
xxxlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
109+
xxlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
110+
xlarge: `${textSansBold34}\n\tline-height: 1.15;\n`,
111+
large: `${textSansBold34}\n\tline-height: 1.15;\n`,
112+
medium: `${textSansBold28}\n\tline-height: 1.15;\n`,
113+
small: `${textSansBold24}\n\tline-height: 1.15;\n`,
111114
xsmall: `${textSansBold20}\n\tline-height: 1.15;\n`,
112115
xxsmall: `${textSansBold17}\n\tline-height: 1.15;\n`,
113116
xxxsmall: `${textSansBold15}\n\tline-height: 1.15;\n`,

0 commit comments

Comments
 (0)