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

Unable to change collapse's bg color #98

Closed
eandresvera opened this issue Jul 1, 2021 · 3 comments
Closed

Unable to change collapse's bg color #98

eandresvera opened this issue Jul 1, 2021 · 3 comments

Comments

@eandresvera
Copy link

Great work doing daisyui!.

I'm unable to change the background color of collapse component:

It is still with white background, even customizing it in my css file using Tailwind's @apply directive:

@saadeghi
Copy link
Owner

saadeghi commented Jul 1, 2021

@eandresvera The style for a focused collapse is a little bit complex because it has to:

  • apply for both types of collapse (using a checkbox / using HTML element focus)
  • apply for both title section and the content section
  • consider the collapse-open an collapse-close utility classes

I will make this color change on the next version: https://play.tailwindcss.com/1i7sNDMt4H
So it will adapt to any background color.
Does this work for you?

@eandresvera
Copy link
Author

@saadeghi that works perfectly!.
Thank you for the fast reply and your work doing daisyui!

@saadeghi
Copy link
Owner

saadeghi commented Jul 1, 2021

@eandresvera The color changes are applied for latest version 1.6.1

inorganik pushed a commit to inorganik/daisyui that referenced this issue Feb 7, 2023
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