Skip to content

Commit

Permalink
Merge pull request #214 from ashokasec/issue-212-dark-mode-toast
Browse files Browse the repository at this point in the history
Fix issue #212: Change toast text color to white in dark mode
  • Loading branch information
thebentern authored Jun 15, 2024
2 parents 258b972 + d2131c2 commit a67a0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function Toaster() {
{toasts.map(({ id, title, description, action, ...props }) => (
<Toast key={id} {...props}>
<div className="grid gap-1">
{title && <ToastTitle>{title}</ToastTitle>}
{description && <ToastDescription>{description}</ToastDescription>}
{title && <ToastTitle className="dark:text-white">{title}</ToastTitle>}
{description && <ToastDescription className="dark:text-white-400">{description}</ToastDescription>}
</div>
{action}
<ToastClose />
Expand Down

0 comments on commit a67a0da

Please sign in to comment.