From eeaa5982bc4faba1b936d142f75eea8b4430b0f5 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 14 Oct 2025 15:14:41 +0100 Subject: [PATCH] make font sizes whole integers --- src/alf/typography.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/alf/typography.tsx b/src/alf/typography.tsx index 3c3bb95489..e88f6417f6 100644 --- a/src/alf/typography.tsx +++ b/src/alf/typography.tsx @@ -27,7 +27,7 @@ export function normalizeTextStyles( ) { const s = flatten(styles) // should always be defined on these components - s.fontSize = (s.fontSize || atoms.text_md.fontSize) * fontScale + s.fontSize = Math.round((s.fontSize || atoms.text_md.fontSize) * fontScale) if (s?.lineHeight) { if (s.lineHeight !== 0 && s.lineHeight <= 2) {