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

bubble-secondary-background-color not can be applied #1021

Open
1iverea9er opened this issue Dec 10, 2024 · 2 comments
Open

bubble-secondary-background-color not can be applied #1021

1iverea9er opened this issue Dec 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@1iverea9er
Copy link

Describe the bug
bubble-secondary-background-color not can be applied while bubble-pop-up-main-background-color applied in themes

To Reproduce
I just use the code from the example for release 2.3.0

Expected behavior
I'm expecting to apply a color from exaple (rgb(0,70,90)) to the background of main entity card in pop-up

Screenshots
image

YAML

Bubble:  
  bubble-secondary-background-color: "rgb(0,70,90)"
  bubble-pop-up-main-background-color: "rgba(200,200,200,0.5)"

Informations (please complete the following information):

  • Browser/App: chrome
  • Bubble Card version: 2.3.0
  • Home Assistant version: 2024.12.1

Additional context
I think bubble-pop-up-main-background-color has an advantage over bubble-secondary-background-color because if I delete the row bubble-pop-up-main-background-color, the color is applied
image

Thank you! 🍻

@1iverea9er 1iverea9er added the bug Something isn't working label Dec 10, 2024
@MrBearPresident
Copy link
Collaborator

You are correct the default order is like this: (where it is first priority, second priority,....)

background: var(--bubble-pop-up-main-background-color, var(--bubble-secondary-background-color, var(--background-color, var(--secondary-background-color))));

Why do you think it should work in another way?
Is there some documentation that points this way?

@1iverea9er
Copy link
Author

1iverea9er commented Dec 13, 2024

Yes, that's probably how it's meant to be. However, this imposes limitations in customization.
That is, I cannot replace the color of the second background while the main background color is defined.
Also, if you choose a dark color (i.e. rgba(30,30,30,0.5)) for bubble-pop-up-main-background-color, the accent becomes almost invisible
image

I was confused by this moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants