This has probably already been asked a 1000 times, but I wasnāt able to get it to work with the posts I found.
Basically, I have this card (see above), I now I just like to change the icon for binary_sensor.gate_door_position_sensor, when the gate is āopenā, show icon AA, when the gate is āclosedā, show icon BB.
so the badge label doesnt have a border-radius variable of its own, which is a bit a pity, and reason we need to travers the Dom for thatā¦ Havent found a way to set different colors on the borders either. we could do that for the badge and the label individually before.
Still trying to work my way through the new Tile card features changes to get the border-radius backā¦
Team simply says thatās unsupported undocumented so weāre on our own thereā¦
Find that somewhat user unfriendly myself (after all why take the trouble to announce a warning on the changes, but leave the changes themselves unmentioned) but will probably work it out anyways
first of all, just setting those variables in a theme, which would then be picked up by the cards, as their default values for these variables are the ones I posted above, var(--feature-border-radius). That doesnāt work.
You can, you have to create your own theme, you can even include some card-mod default that will apply to every cards (wrong exemple, as it refers to badges that will change in 2024.8.0 but you get the idea)
EDIT: Donāt forget that card-mod is coming after everything else, therefore, if it was already defined/inherited by something else, you need to !important to override the value
I use those card-mod-themes since forever, no mysteries there. well, most of it is clear anywaysā¦
what I meant is, we can set values on the system variables like
ha-card-border-width: 0
ha-card-border-color: transparent # test this is even necessary with width = 0?
ha-card-border-radius: 0
ha-dialog-border-radius: var(--ha-card-border-radius)
ha-config-card-border-radius: var(--ha-card-border-radius)
and it will get applied to all views/cards that use these variables.
simply doesnt work, it seems unrecognized, and we need to resort to card-mod like I posted above. Card-mod remains a very important tool in the box, even though using that feature-border-radius would be way simpler
EDIT: Sorry, Iām blindly helping, I had to remove 2024.8.0b3 because Alexa Media Player is failing to initialize (since b0). So Iāve no way to test and check what Iām giving you.
Let me test that again , I did some initial testing on that without success
Also, I think the details on the sliders donāt use that variable .
Thatās what my tile mods are a bit involvedā¦
Thanks! Iāll be back
Haha, thats a bummer indeed for many users right now.
Ive tried that again though, and no, it does not work.
I ll stick with the changes you suggested earlier, they are super reliable at this point.
Fingers crossed they dont change that again.
It will change again, it is always changing.
Thatās why card-mod is the best and worst tool at the same time.
It makes HA so much better and close to my liking but at every monthly release, youāve to pray for the fewer card-mod section to change
I guess you can do that with custom Swipe card.
itās a bit picky on the settings, but given the fact this is now a custom-card, it should allow you to add as many as you like and Swipe them
Not sure if horizontal scroll in css will get you there, dont think I saw it done before. Because all of the container cards (entities, stack, and grid) have their own logic for showing endless amounts of cards, and they never cross the card-with. They either get compressed, listed or displayed on the next line
unless there would some kind of unset property in the badge-card to override the wrapping to the next line
btw overflow-x only makes the card wobblyā¦ best set it to none