Clooos/Bubble-Card

I can't change the background color of button.

zyi840449 opened this issue · 1 comments

When I use the following sample code, the switch background will turn green when turned on; but then immediately change to the system default orange.

type: custom:bubble-card
card_type: button
entity: switch.test
name: Test
styles: |
.bubble-button-card-container {
background-color: ${state === 'on' ? 'green' : 'red'} !important;
}

Same issue.
@zyi840449 did you fix it ?