Skip to content

Commit

Permalink
[@mantine/core] Fix incorrect lineHeight theme variables resolving (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
riettsruff committed Dec 7, 2023
1 parent 3509401 commit 6a721fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MantineTheme } from '../../../../MantineProvider';

export function lineHeightResolver(value: unknown, theme: MantineTheme) {
if (typeof value === 'string' && value in theme.fontSizes) {
if (typeof value === 'string' && value in theme.lineHeights) {
return `var(--mantine-line-height-${value})`;
}

Expand Down

0 comments on commit 6a721fb

Please sign in to comment.