From 9d71f42f308ede0d9f4329a98776de809c5fb0b9 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Mon, 6 Jan 2025 14:00:12 +0000 Subject: [PATCH] Font: Disable contextual font ligatures (#98521) disable contextual font ligatures --- packages/grafana-ui/src/themes/GlobalStyles/elements.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/grafana-ui/src/themes/GlobalStyles/elements.ts b/packages/grafana-ui/src/themes/GlobalStyles/elements.ts index 1550a7c19da..9ef39baccde 100644 --- a/packages/grafana-ui/src/themes/GlobalStyles/elements.ts +++ b/packages/grafana-ui/src/themes/GlobalStyles/elements.ts @@ -54,6 +54,10 @@ export function getElementStyles(theme: GrafanaTheme2) { size: 'auto', padding: 0, }, + // disable contextual font ligatures. otherwise, in firefox and safari, + // an "x" between 2 numbers is replaced by a multiplication ligature + // see https://github.com/rsms/inter/issues/222 + fontVariantLigatures: 'no-contextual', ...theme.typography.body, },