Font: Disable contextual font ligatures (#98521)

disable contextual font ligatures
This commit is contained in:
Ashley Harrison 2025-01-06 14:00:12 +00:00 committed by GitHub
parent cef0b8249a
commit 9d71f42f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
},