Closed mq1 closed 3 years ago
@mq1 That's weird. Buttons only should show the loading spinner if they have a loading
class ๐ค
Can you make a small example repo so I can reproduce this problem?
@mq1 That's weird. Buttons only should show the loading spinner if they have a
loading
class ๐ค Can you make a small example repo so I can reproduce this problem?
@mq1 Thanks!
Well... it looks like WindiCSS is not creating the correct style and I'm afraid I can't fix this on my end.
This is the source style of .btn.loading
:
https://github.com/saadeghi/daisyui/blob/master/src/components/unstyled/button.css#L23
.btn {
&.loading {
&:before {
/* loading style */
}
}
}
and it should result this: (which works fine with Tailwind)
.btn.loading:before{
/* loading style */
}
But WindiCSS is creating this style instead (which is wrong):
.btn:before {
/* loading style */
}
Can you please keep that test repo online? I'm creating an issue on WindiCSS and I'll mention this.
Thanks!
I think we can close this issue DaisyUI works correctly on https://github.com/windicss/windicss/releases/tag/v3.1.2
Buttons always displayed as loading. Click animation not present.
Dropdowns display as btn loading too, and don't work when clicked.
Colors and themes work correctly.
No errors in js console.
Am I missing something?