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

"Color" Variable not working at all #417

Open
4 tasks done
b7-afonso opened this issue Dec 3, 2024 · 1 comment
Open
4 tasks done

"Color" Variable not working at all #417

b7-afonso opened this issue Dec 3, 2024 · 1 comment

Comments

@b7-afonso
Copy link

My Home Assistant version:

  • Core: 2024.11.3
  • Supervisor: 2024.11.4
  • Operating System: 13.2
  • Frontend: 20241106.2

My lovelace configuration method (GUI or yaml): GUI

What I am doing:
Trying to add some custom styling to the default tile card. Specifically, the card is transparent when off, and white when on. All styles work except for changing the font color

What I expected to happen:
I am expecting that when I add a color tag to the relevant classes that it will respond by showing the styling

What happened instead:
All styles worked except changing the color of the text

Minimal steps to reproduce:
Add a tile card through GUI
Add custom code with color tags

# The least amount of code possible to reproduce my error
type: tile
entity: fan.fan_br2_2
tap_action:
  action: toggle
hold_action:
  action: more-info
card_mod:
  style: |
    ha-card {
      background: transparent;
      transition: background 0.3s ease-in-out;
      color: red
    }

    ha-card.active {
      background: rgba(255, 255, 255, 0.3);
      color: red;
    }

    ha-card .primary {
      color: red;
    }

# End of code

Error messages from the browser console:
No errors in console

By putting an X in the boxes ([]) below, I indicate that I:

@ildar170975
Copy link
Contributor

ildar170975 commented Dec 3, 2024

image

Wrong use, not a bug. Suggest to close the issue & ask in Community.

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