Closed nicolasxbx closed 2 months ago
Also, temporary fix suggestions are highly appreciated. (And no, not setting a global DaisyUI prefix :), that's cheap. )
Hey I looked at your issue and this library(shadcn/ui svelte ) adds a 'toast' class to the component. This class is also used by daisyui. Therefore daisyui sets the flex-direction of the component to column while shadcn expects it to be in row. I would advise to use the daisyui prefix for classes to avoid these kinds of problems.
Therefore I think the issue can be closed if you are happy with my answer?
I guess adding a prefix is the only solution here 😐.
Describe the bug
The toast content is misaligned when using using the popular UI library daisyUI as tailwind plugin.
What I suspect: The shadcn-svelte Sonner component uses the class "toast", which overlaps with the daisyUI class "toast".
This does not happen when removing DaisyUI or using the original Sonner of svelte-sonner:
Reproduction
Using daisyUI with shadcn-svelte basically:
StackBlitz example
Logs
No response
System Info
Severity
annoyance