From fca92bbdec65e0e253514629da90f60b3e4c02c8 Mon Sep 17 00:00:00 2001 From: Sam Keen Date: Wed, 22 Jun 2022 12:46:54 +0100 Subject: [PATCH] frontend-monorepo-607: Added correct text colours to intent backgrounds (#614) --- libs/ui-toolkit/src/utils/intent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ui-toolkit/src/utils/intent.tsx b/libs/ui-toolkit/src/utils/intent.tsx index 4a9845eaa..ed81ab625 100644 --- a/libs/ui-toolkit/src/utils/intent.tsx +++ b/libs/ui-toolkit/src/utils/intent.tsx @@ -19,7 +19,8 @@ export const getIntentShadow = (intent?: Intent) => { export const getVariantBackground = (variant?: Intent) => { return { - 'bg-black dark:bg-white': variant === Intent.None, + 'bg-black text-white dark:bg-white dark:text-black': + variant === Intent.None, 'bg-vega-pink text-black dark:bg-vega-yellow dark:text-black-normal': variant === Intent.Primary, 'bg-danger text-white': variant === Intent.Danger,