-
Notifications
You must be signed in to change notification settings - Fork 167
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
2024.8 style badge styling doesn't work #391
Comments
same issue |
@mikosoft83 Maybe try something inspired by card-mod-view-yaml: |
hui-masonry-view $:
hui-view-badges $:
ha-sortable:
hui-badge:nth-child(n):
hui-entity-badge $: |
.badge {
background-color: rgb(255,0,0) !important;
} |
Yes, I do somthing similar but I still reported this since the badge itself is exposed to card-mod theming. |
Inline styling of old-style badges ( I can't get used to new ones because of all customization and space consumation) is also broken. Two examples from lovelace, that stopped working with introduction of new badges (I changed the type to old fashioned badges) - the colours and font sizes don't apply anymore:
|
|
How can you tell it's not a bug? The code does not work anymore, I posted the question in the community, but didn't receive any useful reply in terms of adapting the code, so I assumed it must be a bug, which can be solved by changing plugin. If you are sure it's not a bug and can be solved by altering the code, please, explain me, what and how do I have to change |
STANDARD WAY - use Code Inspector and find out what DOM path & which CSS properties/variables must be used to achieve the result. Very same way which was used to prepare this list of mods. |
I tried that already, but it seems, that I'm not smart enough to find out, what DOM path & which CSS properties have to be used for my case (old styled badges in version 2024.8). That's why I asked for help with posting my code for testing and when I didn't get any useful answer, I tried reporting the bug (I assumed, iif noone knows how to solve it, it must be a general bug then). |
@AdmiralStipe As for "nobody solved yet" - possible reasons are: |
I'm following this, and post here the link to my question in the thread referenced earlier in this issue. |
@AdmiralStipe did you find out anything. I am in the same boat. I have tried for hours and hours but I just cannot learn this DOM path thing. I have used the card mod selector tool but dont know how to apply it in card mod. Please let me know if you come across anything helpful. |
No, after a while i eventually gave up and switched to new badges with mushroom. |
My Home Assistant version: 2024.8
My lovelace configuration method (GUI or yaml): GUI
What I am doing: using card mod in theme to style badges
What I expected to happen: style badges :D
What happened instead: nothing
Minimal steps to reproduce: try anything in card-mod-badge-yaml:
Doesn't get attached to badge shadow root at all
Error messages from the browser console:
Not sure if the error is relevant but I included it anyways.
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: