I’m trying to style all auto-generated entity popups, like the dialogs that appear when tapping a Tile Card or a mini-graph-card.
In both cases, there seems to be an <ha-dialog> in the shadow DOM of an <ha-more-info-dialog>. The <ha-dialog> element receives the <card-mod> child, but my styles do not land on it.
In some desperation, I’ve also tried this, but also not getting anything to stick:
The query looks like it’s matching the DOM to me, but alas, no <card-mod> element appears in the shadow DOM that contains the .mdc-dialog elements – as it does in the case of browser_mod popups. That might mean my query is wrong, or … well, there’s a hundred other things that I might have gotten wrong, honestly.
My suggestion is to use dedicated threads for discussing any card-mod / card-mod-theme related questions:
solutions are kept in one place - not scattered in 100500 threads
you may probably attract more users to get an answer / share your experience
In general:
1st get a stable expected result by using card-mod applied to a particular card - and ask questions in that card-mod thread.
Next create a card-mod-theme to apply a style to all cards - and ask questions in that card-mod-theme thread.
In this particular case:
Styling a “more-info” window can only be done by card-mod-theme. What you tried was using a “ha-more-info-dialog” element to a Tile card.
Using “browser_mod” - for cases like “display a custom window as a popup”. Then it becomes unclear from your post - what window exactly you wish to style? Suggest to sort it out and then decide - either you are styling a standard more-info (then go to card-mod-themes thread) or you are styling a custom popup by browser-mod (then go to card-mod thread) or you are styling a “normal card” on a view (then go to card-mod thread).
Gotcha. I come from communities where the exact opposite is expected and posting on someone else’s thread with your own (different) question is highly frowned upon, e.g. Stack Overflow.
I’ll review the threads you linked to above and ask on that one, if it doesn’t answer my question.