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

avatar-group background color #422

Closed
Primdahl26 opened this issue Jan 23, 2022 · 2 comments
Closed

avatar-group background color #422

Primdahl26 opened this issue Jan 23, 2022 · 2 comments
Labels

Comments

@Primdahl26
Copy link

Primdahl26 commented Jan 23, 2022

Hello! I am having a small issue changing the background color of the avatar-group, and maybe someone could help me!

My issue is that the background I have in the image div is neutral, but it does not seem like i can change the background of the avatar-group, no matter what I try. It seems that this defaults to the base-100. Any idea how to change this to use neutral, so that i dont end up with a circle of base-100 around the provider images?

image
image

<div class="card compact bordered w-auto transition duration-500
                   bg-neutral ease-in-out transform m-1 shadow-md hover:opacity-50">
  <a href="{mediaIdToUrlConverter(media.id)}">
      <figure>
          <img
              src="{LOW_RES_IMG_URL}{media.poster_path}"
              alt="{media.title}"
          />
      </figure>
    <div class="-space-x-4 avatar-group">
        {#each media.specific_providers as provider}
            <div class="avatar">
                <div class="w-12 h-12">
                    <img
                        src="{IMG_URL}{provider.logo_path}"
                        alt="{provider.name}"
                    />
                </div>
            </div>
        {/each}
    </div>
  </a>
</div>

Any help is appreciated, thanks! 😅

@flip111
Copy link

flip111 commented Jan 23, 2022

Try to go into your web developer tools and find out which CSS rules overwrites the rules you are putting on the element directly. You can then uncheck this rule to see if your wanted color takes effect so you know you found the right rule.

For fixing it you can try to put ! in front of your class https://tailwindcss.com/docs/configuration#important-modifier i can't tell you if that is the right fix though as you need to inspect the generated css first to understand from which css rules effects are applied.

EDIT: i just found that if you go into developer tools you can easily see for a specific rule which css rules where affecting that without searching for it. See screenshot below

Screenshot from 2022-01-23 14-50-24

saadeghi added a commit that referenced this issue Jan 23, 2022
@saadeghi
Copy link
Owner

Fixed. update to latest version and you can use custom border colors.
examples: https://play.tailwindcss.com/4ki9LCtY0l

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

No branches or pull requests

3 participants