Following a cue from Github I removed the card-mod entry from configuration.yaml, restarted and reloaded without cache, and the problem stopped happening. Then added the entry back, did the rest and the problem still doesn’t happen. Not sure what was going on.
also I have a slider (helper) with ID input_number.temperatureslider1
how can I dynamically change the text color of the card based on value in temperatureslider1 ?
I mean, I would like to see the actual temperature green on background if (temperature < temperatureslider1) and red on background if (temperature >= temperatureslider1).
I have been trying to combine the third example on the post above and this other post to change the fill color of the chip buttons in a conditional row inside an entities card, but for the life of me I can’t get it to work. The style doesn’t take effect. However, using the browser inspector the color does change for the same --ha-assist-chip-filled-container-color property that appears on the first post.
I’m facing an issue where my modified cards look great on Android and tablets but don’t render right on iPhones (yeah we are a mixed household lol). Half the card is missing. My guess is that my card mod code is hyper targeted to what I see in Chrome and probably not generic enough. I saw something about reliability of paths on the official docs on github. Before I go crazy rechecking everything, does anyone know if this is a known issue with a simple fix or I need to play with shadow root paths? Thanks!
P.S. one of the biggest source of complexity now is shoving two mini graph cards in a mushroom template card to display humidity and temp trends for past 24 hours. If you know a simpler way to add charts to mushroom template pls let me know. Right now I need to do a lot of resizing and play with translate and margins.
What is likely causing your issue is just that browsers have different CSS variable support, interpret variables differently, and make different assumptions to what defaults should be.
Chrome(Chromium Browsers)/Android uses Webkit, iPhone also uses Webkit, but the implementation is different, and firefox uses the Gecko engine.
The issue wont be with card mod or the elements you have selected as this will be static, it will be with the variables you have chosen to use. So look into finding out what variables may need 2 different variables declared to work nicely accross browsers.
when mediaquery and the max-width line was added, only the 2nd and 3rd variables works when invoking in the script later on. --fan-transform-style does not work at all. If i copy this as a new line (4th line) below it works. Anyone knows the reason why?
all 3 will also work if i were to remove the following from above:
mediaquery:
'(max-width: 40px)':
mediaquery is not working, changing the max-width to many different numbers did not cause any changes to the conditions.