Open cableghost opened 1 month ago
show_name: true
show_icon: true
type: button
icon: mdi:palette
tap_action:
action: toggle
entity: script.test_script
name: Blue
card_mod:
style: |
ha-card {
--paper-item-icon-color: blue;
}
It is blue:
It MAY BE NOT blue in Editor since the Editor looses card-mod code (https://github.com/thomasloven/lovelace-card-mod/issues/337):
and after save it definitely NOT blue since card-mod code is deleted (i.e. not saved):
If the card-mod code is deleted at some point, I'm unaware, as the code is there every time I go to edit the cards. It's a strange scenario and only occurs for me inside the basic horz panel card. The same code works as expected within mushroom cards.
If your issue is only about "card-mod code is automatically deleted" - then this is a duplicate of https://github.com/thomasloven/lovelace-card-mod/issues/337. If not - suggest to add details since in my setup I see a color ALWAYS applied - if the card-mod code is NOT deleted.
Thank you for your response. I really don't have any other evidence of this occurring. It must be a conflict with other code, somewhere.
On Tue, May 28, 2024, 9:35 PM ildar170975 @.***> wrote:
If your issue is only about "card-mod code is automatically deleted" - then this is a duplicate of #337 https://github.com/thomasloven/lovelace-card-mod/issues/337. If not - suggest to add details since in my setup I see a color ALWAYS applied - if the card-mod code is NOT deleted.
— Reply to this email directly, view it on GitHub https://github.com/thomasloven/lovelace-card-mod/issues/378#issuecomment-2136410035, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKRN7YR2ULILEJWQ5T4RBTZEU5H3AVCNFSM6AAAAABIKCPKXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGQYTAMBTGU . You are receiving this because you authored the thread.Message ID: @.***>
My Home Assistant version: 2024.5.5
My lovelace configuration method (GUI or yaml): yaml, thru GUI
What I am doing: Coding static icon color
What I expected to happen: Icon color to be as I coded
What happened instead: No color change
Minimal steps to reproduce: Restart HA or clear cache, start fresh
Error messages from the browser console:
By putting an X in the boxes ([]) below, I indicate that I:
[X] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[X] Have made sure I am using the latest version of the plugin.
[X] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[X] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.