Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Using @apply with tooltip tooltip-primary is broken #2371

Closed
amir20 opened this issue Sep 24, 2023 · 2 comments
Closed

bug: Using @apply with tooltip tooltip-primary is broken #2371

amir20 opened this issue Sep 24, 2023 · 2 comments
Assignees

Comments

@amir20
Copy link

amir20 commented Sep 24, 2023

What version of daisyUI are you using?

3.7.7

Describe your issue

I am new DaisyUI so I might be doing something wrong here. But looking at the source code, I think I have found the culprit. When using Tailwind's @apply does not work.

Here is an example:

<a class="tooltip-primary tooltip tooltip-right ...>...</a>

works

But using a class

a {
   @apply tooltip-primary tooltip tooltip-right;
}

It has no background. Looking at the code, I noticed that colors is implemented as .tooltip.tooltip-primary { ... } which means that they only works with classes on DOM.

Is this to be expected? I have searched through all issues and didn't find anything.

The reason I am using @apply is because 1000+ nodes which adding each class seems repetitive.

What browsers are you seeing the problem on?

Chrome

Reproduction URL

No response

@flomero
Copy link
Contributor

flomero commented Sep 25, 2023

Reproduction:
https://play.tailwindcss.com/9uUokvFeBS

@saadeghi saadeghi self-assigned this Sep 26, 2023
@saadeghi
Copy link
Owner

Fixed in 3.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants