Skip to content

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

Description

@KeeganWooten

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions