-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: input checkbox background-image overrides checked:background-color #2585
Comments
Thanks for reporting.
|
Thank you very much for not only fixing this in amazing time but for the added value of a better solution. |
Just a small question regarding this though, what if I use a hex string? I have tried a few ideas but cannot make it work? |
It can be hex. It can be any color format: |
There appears to be another issue, if you set a transparency to the color, the background image gradient comes through. |
It's not a SVG icon. It's an icon made with CSS gradient so, yes, the color shouldn't be transparent. |
I was interested in allowing the container background color to bleed through the backgound of the checkbox (to tint the background of the checkbox). The background of the checkbox is dynamic and is not known at codetime, only at runtime. |
In that case you can use a custom icon image with a custom background color like this: |
What version of daisyUI are you using?
v4.4.9
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://play.tailwindcss.com/Ux75Tg56m3
Describe your issue
When trying to override the backgroundColor of a checked input checkbox, it will not apply the color until the backgroundImage style is removed.
The text was updated successfully, but these errors were encountered: