From 80acc16791b7910918a4bc6b8fa7b493914c1c16 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 4 Aug 2023 08:46:05 -0400 Subject: [PATCH] fix: Badge's do not correctly use accent text color --- app/components/Badge.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/Badge.ts b/app/components/Badge.ts index e79f2b1dc..809cb7b59 100644 --- a/app/components/Badge.ts +++ b/app/components/Badge.ts @@ -7,7 +7,11 @@ const Badge = styled.span<{ yellow?: boolean; primary?: boolean }>` background-color: ${({ yellow, primary, theme }) => yellow ? theme.yellow : primary ? theme.accent : "transparent"}; color: ${({ primary, yellow, theme }) => - primary ? theme.white : yellow ? theme.almostBlack : theme.textTertiary}; + primary + ? theme.accentText + : yellow + ? theme.almostBlack + : theme.textTertiary}; border: 1px solid ${({ primary, yellow, theme }) => primary || yellow