From da44f151ced203d7b08361a3e9d4aa4012153d23 Mon Sep 17 00:00:00 2001 From: Danielle Man Date: Sun, 15 Aug 2021 21:28:38 -0700 Subject: [PATCH] fix border color in dark mode for AlertCard --- src/AlertCard/AlertCard.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/AlertCard/AlertCard.tsx b/src/AlertCard/AlertCard.tsx index 7317f860..885b7de2 100644 --- a/src/AlertCard/AlertCard.tsx +++ b/src/AlertCard/AlertCard.tsx @@ -143,7 +143,12 @@ export const AlertCard: React.FC = ({ borderStyle: "solid", borderRadius: 4, borderWidth: 1, - borderColor: colors.silver.dark, + borderColor: + theme === "light" + ? colors.silver.dark + : theme === "dark" + ? colors.midnight.dark + : assertUnreachable(theme), padding: 15, }), otherProps.className,