You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It means that the custom loadingIcon is rendered with the toast's classes, which causes a double rendering of styles (background, shadows etc.). I think it would be better if the loadingIcon prop was completely agnostic to any other external styles, as you've already opted into rendering the loading component yourself entirely anyway?
Example:
The text was updated successfully, but these errors were encountered:
Looking at the code, I'm not sure if this is intentional or not..?:
sonner/src/index.tsx
Line 200 in 9b0dcae
It means that the custom
loadingIcon
is rendered with the toast's classes, which causes a double rendering of styles (background, shadows etc.). I think it would be better if theloadingIcon
prop was completely agnostic to any other external styles, as you've already opted into rendering the loading component yourself entirely anyway?Example:
The text was updated successfully, but these errors were encountered: