Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Fix border color in dark mode for AlertCard #372

Merged
merged 2 commits into from
Aug 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/AlertCard/AlertCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ export const AlertCard: React.FC<AlertCardProps> = ({
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,
Expand Down