A bit of background, this is for a webhook popup that shows the intercom camera feed when the call button is pressed.
The popup is displayed on several devices, this all works great.
But now I am left with a popup with two close buttons. Top left just closes the popup locally and botton right closes globally with browser_mod.close_popup.
So I want to hide the top left close button, but it seems whatever I try, cannot hide it.
Using browser dev tools, if I select ha-button and type in console $0.style.display = 'none'. It hides the button. So it's just a matter of finding the correct path for card_mod.
I spent many more hours on this. I have been unsuccessul in removing the button using card_mod. I suspect that is being injected after the card has been rendered.
Anyway the core issue is that dismissable=false means that the user should not be able to dismiss the popup according to the documentation (without use of action buttons). So I have logged that as a bug.
Just to close this down, I have had a reply from the developers
Thanks for the report. With the recent changes in Frontend dialogs, now that the navigation icon is in a slot, Frontend will show a close icon if there is nothing in the slot. The fix will be to render an empty div in the slot to prevent the default close icon showing.
Which explains why I was having no sucess with card_mod.