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

data-flux-modal is not working #318

Open
BubeDameKoenig opened this issue Oct 4, 2024 · 3 comments
Open

data-flux-modal is not working #318

BubeDameKoenig opened this issue Oct 4, 2024 · 3 comments

Comments

@BubeDameKoenig
Copy link

It looks to me as if the values from [data-flux-modal] are not being transferred to the <dialog>.

[data-flux-modal] {
    @apply !text-red-500 !font-normal;
}
<flux:modal name="test" class="md:max-w-lg">
    Test
</flux:modal>
@ju5t
Copy link

ju5t commented Oct 4, 2024

When you're using @apply you should probably use !important rather than prefixing Tailwind classes. The prefix is for classes you apply inline to an element, @apply is like 'standard' CSS.

Have you tested if that works for you? I can't test it myself at the moment.

@BubeDameKoenig
Copy link
Author

This leads to the following error message:
The !importantclass does not exist. If!importantis a custom class, make sure it is defined within a@layer directive.

@ju5t
Copy link

ju5t commented Oct 5, 2024

Can you share what you did exactly?

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

2 participants