Skip to content

Commit

Permalink
fix(Toast): Made toast theme color more visible (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
wadhia-yash authored Aug 26, 2024
1 parent 2a6cf59 commit 9120d90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/lib/components/Toast.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class="pointer-events-none fixed right-0 top-12 z-30 bg-gradient-to-bl from-red-500/20 via-red-500/0 to-red-500/0 pb-36 pl-36 pr-2 pt-2 md:top-0 md:pr-8 md:pt-5"
>
<div
class="pointer-events-auto flex items-center rounded-full bg-white/90 px-3 py-1 shadow-sm dark:bg-gray-900/80"
class="pointer-events-auto flex items-center rounded-full bg-white/90 px-3 py-1 shadow-sm"
>
{#if ToastType.SUCCESS === toastType}
<CarbonCheck color="green" height="1.5em" width="1.5em" class="mx-2" />
Expand All @@ -27,6 +27,6 @@
{:else if ToastType.ERROR === toastType}
<CarbonError color="red" height="1.5em" width="1.5em" class="mx-2" />
{/if}
<h2 class="font-semibold mx-2 text-white">{message}</h2>
<h2 class="font-semibold mx-2">{message}</h2>
</div>
</div>
2 changes: 1 addition & 1 deletion web/src/lib/components/chat/ChatIntroduction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
toastStore.set({
message: "Notification sent successfully",
message: "Notification will be sent successfully",
type: ToastType.SUCCESS,
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/components/chat/ChatWindow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
}
toastStore.set({
message: "Notification sent successfully",
message: "Notification will be sent successfully",
type: ToastType.SUCCESS,
});
Expand Down

0 comments on commit 9120d90

Please sign in to comment.