-
Notifications
You must be signed in to change notification settings - Fork 4.5k
btn-disabled not work for Arbitrary #17057
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
Comments
This is due to the fact that addComponents({
".btn": {
// …
"&:is(:disabled, [disabled], .btn-disabled)": {
// …
},
},
".btn-primary": {
// …
},
}); With the way the legacy You could consider raising this issue with Daisy UI. Or otherwise, you can copy the CSS into your own utility class name: @utility btn-disabled {
@layer components {
&:not(.btn-link, .btn-ghost) {
background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
box-shadow: none;
}
pointer-events: none;
--btn-border: #0000;
--btn-noise: none;
--btn-fg: color-mix(in oklch, var(--color-base-content) 20%, #0000);
@media (hover: hover) {
&:hover {
background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
pointer-events: none;
--btn-border: #0000;
--btn-fg: color-mix(in oklch, var(--color-base-content) 20%, #0000);
}
}
}
} |
Sorry, I submitted the issue to the wrong repository |
What version of Tailwind CSS are you using?
4.0.12
What build tool (or framework if it abstracts the build tool) are you using?
nextjs 15.2.1
What version of Node.js are you using?
v22.13.1
What browser are you using?
Chrome
What operating system are you using?
mac sequoia 15.3
For example: macOS, Windows
Reproduction URL
https://github.com/cqh963852/daisyui-demo
Describe your issue
btn-disabled not work for Arbitrary
bg-primary works
The text was updated successfully, but these errors were encountered: