make font sizes whole integers

This commit is contained in:
Samuel Newman
2025-10-14 15:14:41 +01:00
parent d2bc22e9be
commit eeaa5982bc
+1 -1
View File
@@ -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) {