From a5057f3dbe10b30e9789505655e7d1f10a2128e0 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sun, 19 Sep 2021 19:37:14 +0100 Subject: [PATCH] Update mdx button styles --- components/MDXButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/MDXButton.tsx b/components/MDXButton.tsx index 26081eb..d1489b2 100644 --- a/components/MDXButton.tsx +++ b/components/MDXButton.tsx @@ -15,7 +15,8 @@ const Btn = styled.button` display: ${({ variant }) => ['action', 'outline'].includes(variant as string) ? 'block' : 'inline'}; width: ${({ variant }) => (['action', 'outline'].includes(variant as string) ? '100%' : 'auto')}; - background: ${({ variant, theme }) => (variant === 'action' ? theme.colors.blue : 'none')}; + /* TODO: fix theme blue color problem */ + background: ${({ variant, theme }) => (variant === 'action' ? '#1573CA' : 'none')}; color: ${({ variant, dark }) => (variant === 'action' ? 'white' : dark ? 'white' : 'black')}; border: ${({ variant, dark }) => variant === 'outline' ? `2px solid ${dark ? 'white' : 'black'}` : 'none'};