From 2f354282328ee5fe1ec081c7bcabe922c628f609 Mon Sep 17 00:00:00 2001 From: Faiz Date: Thu, 19 Jun 2025 21:57:35 +0530 Subject: [PATCH] fix: align tick icon, text, and cross icon inside toaster (#21607) * Fix: align tick icon, text, and cross icon inside toaster * fix: align elements in toaster * fix: toaster icon changes * test approval recheck * fix: toast message id fixed * fix: merge conflict resolved * fix:test recheck --------- Co-authored-by: Kartik Saini <41051387+kart1ka@users.noreply.github.com> --- packages/ui/components/toast/showToast.tsx | 55 ++++++++++++---------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/packages/ui/components/toast/showToast.tsx b/packages/ui/components/toast/showToast.tsx index 3db4ada290..062888525e 100644 --- a/packages/ui/components/toast/showToast.tsx +++ b/packages/ui/components/toast/showToast.tsx @@ -13,17 +13,19 @@ type IToast = { export const SuccessToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -31,17 +33,19 @@ export const SuccessToast = ({ message, onClose, toastId }: IToast) => ( export const ErrorToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -49,17 +53,19 @@ export const ErrorToast = ({ message, onClose, toastId }: IToast) => ( export const WarningToast = ({ message, onClose, toastId }: IToast) => ( ); @@ -71,7 +77,6 @@ type ToastVariants = "success" | "warning" | "error"; export function showToast( message: string, variant: ToastVariants, - // Options or duration (duration for backwards compatibility reasons) options: number | ExternalToast = TOAST_VISIBLE_DURATION ) { const _options: ExternalToast = typeof options === "number" ? { duration: options } : options;