From 818d9e0836bf0e7f2bf08aaf190c9bb4f46007e9 Mon Sep 17 00:00:00 2001 From: Vitaly Rtishchev Date: Mon, 8 Aug 2022 17:39:01 +0300 Subject: [PATCH] [@mantine/core] Loader: Fix incorrect color being applied when color prop is not set (#2047) --- src/mantine-core/src/Loader/Loader.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mantine-core/src/Loader/Loader.tsx b/src/mantine-core/src/Loader/Loader.tsx index f108aa424b8..0e33da4a7a8 100644 --- a/src/mantine-core/src/Loader/Loader.tsx +++ b/src/mantine-core/src/Loader/Loader.tsx @@ -55,7 +55,13 @@ export function Loader(props: LoaderProps) { role="presentation" component={LOADERS[defaultLoader] || LOADERS.bars} size={theme.fn.size({ size, sizes })} - color={theme.fn.variant({ variant: 'filled', primaryFallback: false, color }).background} + color={ + theme.fn.variant({ + variant: 'filled', + primaryFallback: false, + color: color || theme.primaryColor, + }).background + } {...others} /> );