Closed Splinteer closed 8 months ago
Thank you @Splinteer
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.
It's not related to daisyUI. It's how Tailwind CSS works. All class names should exist in the file as a string:
https://tailwindcss.com/docs/content-configuration#dynamic-class-names
What version of daisyUI are you using?
4.7.2
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://stackblitz.com/edit/daisyui-angular-bys9bg?file=src%2Fapp%2Fbutton.component.ts
Describe your issue
Classes like btn-primary, btn-secondary... are not working when using template litterals in TypeScript. I need to do:
Instead of
to have my button with a working btn-primary class