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

red_on card template is missing card background color and legacy template #1618

Open
KeeganWooten opened this issue Feb 23, 2025 · 0 comments
Labels

Comments

@KeeganWooten
Copy link

KeeganWooten commented Feb 23, 2025

Describe the bug
The "red_on" card template is missing the card background color and legacy template declaration.

To Reproduce
Steps to reproduce the behavior:

  1. Persistent across versions.

Expected behavior
Other "_color__on" cards are declared as:

green_on:
  state:
    - styles:
        icon:
          - color: "rgba(var(--color-green),1)"
        label:
          - color: "rgba(var(--color-green-text),1)"
        name:
          - color: "rgba(var(--color-green-text),1)"
        img_cell:
          - background-color: "rgba(var(--color-green), 0.2)"
        card:
          - background-color: "rgba(var(--color-background-green), var(--opacity-bg))"
      value: "on"
      id: "on"

# Legacy
green:
  template: "green_on"

red_on however:

red_on:
  state:
    - styles:
        icon:
          - color: "rgba(var(--color-red),1)"
        label:
          - color: "rgba(var(--color-red-text),1)"
        name:
          - color: "rgba(var(--color-red-text),1)"
        img_cell:
          - background-color: "rgba(var(--color-red), 0.2)"
      value: "on"
      id: "on"

This should be a simple correction to the theme files, changing red_on to:

red_on:
  state:
    - styles:
        icon:
          - color: "rgba(var(--color-red),1)"
        label:
          - color: "rgba(var(--color-red-text),1)"
        name:
          - color: "rgba(var(--color-red-text),1)"
        img_cell:
          - background-color: "rgba(var(--color-red), 0.2)"
        card:
          - background-color: "rgba(var(--color-background-red), var(--opacity-bg))"
      value: "on"
      id: "on"

# Legacy
red:
  template: "red_on"

This has persisted for a while now, I just manually change the theme file every update. Finally decided to make a post about it, thanks!

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

1 participant