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

card_mod: styling unavailability #194

Open
Krzysztonek opened this issue Jan 15, 2025 · 1 comment
Open

card_mod: styling unavailability #194

Krzysztonek opened this issue Jan 15, 2025 · 1 comment

Comments

@Krzysztonek
Copy link

I need to add a rounded border to this card. When trying to use card_mod styles, like:

type: custom:timer-bar-card
card_mod:
  style: |
    ha-card {
      background-color: var(--primary-background-color);
      border-color: lime;
      border-radius: 5%
    }
icon: mdi:sprinkler
(...)

this whole card_mod section is never being saved in the card editor and it simply disappears from the card code.
Any hint on how to use such a way of styling, please?

@Krzysztonek Krzysztonek changed the title card_mod: styling availability card_mod: styling unavailability Jan 15, 2025
@rianadon
Copy link
Owner

I changed the editor in the latest version, which could be the culprit.

If you click "Show Code Editor" at the bottom left corner, then add the card_mod section, does it get saved?

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