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: Toggle switch checkboxes break when focused #3329

Closed
B1tWhys opened this issue Dec 20, 2024 · 4 comments
Closed

bug: Toggle switch checkboxes break when focused #3329

B1tWhys opened this issue Dec 20, 2024 · 4 comments

Comments

@B1tWhys
Copy link

B1tWhys commented Dec 20, 2024

What version of daisyUI are you using?

4.12.22

Which browsers are you seeing the problem on?

Chrome, Firefox

Reproduction URL

https://github.com/B1tWhys/daisyui-toggle-bug-report

Describe your issue

Hi, I'm having an issue where toggle switches are rendering completely gray when focused, but render completely fine once focus goes away:

screenshot

Here's a repo that reproduces the error (see the readme for more detailed reproduction steps): https://github.com/B1tWhys/daisyui-toggle-bug-report

Thanks in advance!

Copy link

Thank you @B1tWhys 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.

@saadeghi
Copy link
Owner

This style is from @tailwindcss/forms, not daisyUI

If you really need @tailwindcss/forms use their class strategy so it doesn't apply styles to all inputs on the page.

Let me know if you have any questions

@B1tWhys
Copy link
Author

B1tWhys commented Dec 20, 2024

Ah, woops. That makes sense. Thanks for the quick response!

@AckermannTM
Copy link

I had the same issue. Removing @tailwindcss/forms from tailwind.config.js fixed the issue! Thank you guys :D

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