-
Notifications
You must be signed in to change notification settings - Fork 168
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
primary-text-color no longer working? #356
Comments
What are these "*" used for?
|
Those showed up after pasting... should not be there. Updated original post. |
You are facing the issue with a custom card. |
As far as I am aware, I can't use "--primary-text-color" on a standard HA card to test? Reality is that the code was working fine yesterday and for weeks prior without any changes made to the code. Also posted on the lovelace-mushroom Github: 1355 |
Thank you for your time - I must have made a typo when I tried a moment ago with a standard card. Does in fact work... will see what I get on the mushroom Github side. type: entity
entity: input_boolean.dog_henry_feeding_required
card_mod:
style: |
ha-card {
{% set state=states('input_boolean.dog_henry_feeding_required') %}
{% if state=='on' %}
--primary-text-color: red
{% else %}
--primary-text-color: green
{% endif %}
} |
The format should be according to this post. piitaya/lovelace-mushroom#1348 (comment). Think this issue could be closed. |
Can someone help me with a similair issue? `type: custom:stack-in-card
|
My Home Assistant version: Core 2024.1.6 | Frontend 20240104.0
My lovelace configuration method (GUI or yaml): yaml
What I am doing:
Setting primary text colour as red or green.
What I expected to happen:
Certain text should be colour coded green (for yes) and red (for no).
This was working yesterday. Seems to be an issue on iOS/iPadOS Companion App, mobile and desktop browsers.
What happened instead:
As of today, the text just stays white and does not change based on state.
Not sure if this is specifically an issue with card-mod, or mushroom-template (both are using latest versions installed via HACS).
Minimal steps to reproduce:
Loaded up HA in Companion App this morning and text colours no longer change.
Error messages from the browser console:
No errors in HA logs or in Chrome browser Console.
Was able to get a screen cap from phone before it refreshed:
Screen cap from tablet this morning:
By putting an X in the boxes ([]) below, I indicate that I:
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
Have made sure I am using the latest version of the plugin.
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
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.
The text was updated successfully, but these errors were encountered: