bug: tooltip crashes when theme is an empty array
this-oliver opened this issue · comments
What version of daisyUI are you using?
4.7.2
Which browsers are you seeing the problem on?
Safari, Safari iOS, Firefox
Reproduction URL
https://play.tailwindcss.com/TQ3VC9hEFg
Describe your issue
The tool tip crashes when the theme config in tailwind.config.ts
is empty:
{
"daisyui": {
"themes": []
}
}
Thank you @this-oliver
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
Crash?
It just loses all the colors, like other components. You can add colors to it manually, or by defining a daisyUI theme using color variables.
https://play.tailwindcss.com/xLYmX24vEW
Let me know if you have a question.