Skip to content

Colored badges in Glance cards based on entity active state #5040

@zappasmart

Description

@zappasmart

State of the art

Glance cards currently provide a way to color the entity icon based on its active state:

image

The request

It would be nice if there was the option of coloring the circle behind the icon, instead of the icon, so the active state stands out better, either when it's on or off:

image

image

Readability improves.

Additional information

No change to the HTML structure is needed, as it would be just a matter of styling the already present <state-badge> element, that represents the circle behind the icon:

image

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