Closed TheHadiAhmadi closed 5 months ago
Thank you @TheHadiAhmadi
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.
That's how @apply
works and there's nothing I can do about it.
When you use
.my-pagination {
@apply join;
}
It copies the CSS rules of .join
class to .my-pagination
but it doesn't copy a child selector (.join .join-item
) to a new class name .my-pagination .my-pagination-item
. In other words, with @apply
you can use a single CSS rule in a new class name but all the relations between class names will be ignored. This is not a bug, but simply how @apply
is intented to work.
May I ask why you need to rename the class names?
What version of daisyUI are you using?
4.12.2
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://play.tailwindcss.com/8gTvGmHF0y
Describe your issue
I want to create custom class name for my components, and use
@apply
. combination of join and join-item doesn't work with apply.I expect this code works:
but buttons have roundness and styles of join-item are not applied.
above code should be equivalent to below code:
thanks