Highlight entity text background when active

Hi,

I’ve been trying to find a way to change the entity text background colour to match the active colour of the icon and state.

The icon and state change colour no problem and this I can configure in the theme but not the background colour of the text label.

Is it possible? Would be great if the whole entity lit up when active.

However I don’t know if there is a CSS element for the text background.

Aha. Looks like I might be able to do something with that. Thanks, I’ll see what’s possible.