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

Active button background color #179

Open
ganjakyp-hub opened this issue Mar 22, 2024 · 0 comments
Open

Active button background color #179

ganjakyp-hub opened this issue Mar 22, 2024 · 0 comments

Comments

@ganjakyp-hub
Copy link

ganjakyp-hub commented Mar 22, 2024

The problem

2024-03-22_134044

How can I make sure that the background color of a button that is turned on does not change to yellow, but remains the same as when it is turned off?

What version of Paper Buttons Row has the issue?

2.1.3

What version of Home Assistant are you running?

2023.12.4

What version of the Frontend are you running?

20231208.2

Example YAML snippet

- type: custom:paper-buttons-row
    preset: mushroom
    buttons:
      - entity: binary_sensor.192_168_10_143
        layout: icon|state
        styles:
          button:
            width: 98%
            padding: 11px 12px 10px 12px
        state_icons:
          'on': mdi:power-plug-off
          'off': mdi:power-plug
        state_text:
          'on': Выключить телевизор
          'off': Включить телевизор
        state_styles:
          'on':
            state:
              color: var(--state-active-color)
            icon:
              color: var(--state-active-color)
          'off':
            state:
              color: var(--paper-item-icon-color)
            icon:
              color: var(--paper-item-icon-color)
        tap_action:
          action: call-service
          service: scene.turn_on
          target:
            entity_id:

Anything in the logs that might be useful for us?

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant