Skip to content

Commit 89e1392

Browse files
committed
[dashboard] fix toast contrast
Tool: gitpod/catfood.gitpod.cloud
1 parent 16468dc commit 89e1392

File tree

1 file changed

+4
-5
lines changed
  • components/dashboard/src/components/toasts

1 file changed

+4
-5
lines changed

components/dashboard/src/components/toasts/Toast.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,24 @@ export const Toast: FC<Props> = ({ id, message, duration = 5000, autoHide = true
7171
"relative flex justify-between items-start",
7272
"w-full md:w-112 max-w-full",
7373
"p-4 md:rounded-md",
74-
"bg-gray-800 dark:bg-gray-50",
75-
"text-white dark:text-gray-800",
74+
"text-pk-content-invert-primary bg-pk-surface-invert",
7675
"transition-transform animate-toast-in-right",
7776
)}
7877
onMouseEnter={onMouseEnter}
7978
onMouseLeave={onMouseLeave}
8079
role="alert"
8180
aria-labelledby={elId}
8281
>
83-
<div className="flex-grow text-white dark:text-gray-800" id={elId}>
84-
{typeof message === "string" ? <p>{message}</p> : message}
82+
<div className="flex-grow" id={elId}>
83+
{typeof message === "string" ? <span>{message}</span> : message}
8584
</div>
8685
<div>
8786
<Button
8887
variant="ghost"
8988
// TODO: Determine if we can lift this button style into a variant
9089
className={cn(
9190
"p-2 ml-2 -mt-1",
92-
"text-white hover:text-gray-300 dark:text-gray-800 dark:hover:text-gray-600",
91+
"text-pk-content-invert-primary hover:text-pk-content-invert-secondary",
9392
)}
9493
onClick={handleRemove}
9594
>

0 commit comments

Comments
 (0)