Skip to content

Commit

Permalink
[@mantine/core] Loader: Fix incorrect color being applied when color …
Browse files Browse the repository at this point in the history
…prop is not set (#2047)
  • Loading branch information
rtivital committed Aug 8, 2022
1 parent 1a61cfc commit 818d9e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mantine-core/src/Loader/Loader.tsx
Expand Up @@ -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}
/>
);
Expand Down

0 comments on commit 818d9e0

Please sign in to comment.