@@ -16,15 +16,15 @@ export const SuccessToast = ({ message, onClose, toastId }: IToast) => (
1616 "data-testid-toast-success bg-default dark:bg-inverted text-emphasis dark:text-inverted shadow-elevation-low border-subtle mb-2 flex h-auto items-center justify-between space-x-2 rounded-lg border px-3 py-2.5 text-sm font-semibold rtl:space-x-reverse md:max-w-sm"
1717 ) }
1818 onClick = { ( ) => onClose ( toastId ) } >
19- < span className = "mt-1" >
19+ < span >
2020 < Icon name = "check" className = "size-4" />
2121 </ span >
2222 < div className = "flex items-center" >
2323 < p data-testid = "toast-success" className = "m-0 w-full text-left" >
2424 { message }
2525 </ p >
2626 </ div >
27- < span className = "mt-1" >
27+ < span >
2828 < Icon name = "x" className = "size-4 hover:cursor-pointer" />
2929 </ span >
3030 </ button >
@@ -36,15 +36,15 @@ export const ErrorToast = ({ message, onClose, toastId }: IToast) => (
3636 "animate-fade-in-up bg-semantic-error-subtle text-semantic-error shadow-elevation-low border-semantic-error-subtle mb-2 flex h-auto items-center justify-between space-x-2 rounded-md border px-3 py-2.5 text-sm font-semibold rtl:space-x-reverse md:max-w-sm"
3737 ) }
3838 onClick = { ( ) => onClose ( toastId ) } >
39- < span className = "mt-1" >
39+ < span >
4040 < Icon name = "info" className = "text-semantic-error size-4" />
4141 </ span >
4242 < div className = "flex items-center" >
4343 < p data-testid = "toast-error" className = "m-0 w-full text-left" >
4444 { message }
4545 </ p >
4646 </ div >
47- < span className = "mt-1" >
47+ < span >
4848 < Icon name = "x" className = "text-semantic-error size-4 hover:cursor-pointer" />
4949 </ span >
5050 </ button >
@@ -56,15 +56,15 @@ export const WarningToast = ({ message, onClose, toastId }: IToast) => (
5656 "animate-fade-in-up bg-semantic-attention-subtle text-semantic-attention shadow-elevation-low border-semantic-attention-subtle mb-2 flex h-auto items-center justify-between space-x-2 rounded-md border px-3 py-2.5 text-sm font-semibold rtl:space-x-reverse md:max-w-sm"
5757 ) }
5858 onClick = { ( ) => onClose ( toastId ) } >
59- < span className = "mt-1" >
59+ < span >
6060 < Icon name = "info" className = "text-semantic-attention size-4" />
6161 </ span >
6262 < div className = "flex items-center" >
6363 < p data-testid = "toast-warning" className = "m-0 w-full text-left" >
6464 { message }
6565 </ p >
6666 </ div >
67- < span className = "mt-1" >
67+ < span >
6868 < Icon name = "x" className = "text-semantic-attention size-4 hover:cursor-pointer" />
6969 </ span >
7070 </ button >
0 commit comments