button-card icon indicating copy to clipboard operation
button-card copied to clipboard

Custom button backgrounds go transparent after updating HA core to 2025.5.1

Open HDJedi opened this issue 7 months ago • 3 comments

Hi, I’ve just found that after updating HA core to 2025.5.1 or 2025.5.2 from 2025.4.4 my custom card buttons have transparent backgrounds not color as normal. Anyone else have this issue? Any ideas to fix this? Rolling back to 2025.4.4 returned everything to normal. Any help with this would be appreciated. Currently Core 2025.4.4 Supervisor 2025.05.1 OS 15.2 Frontend 20050411.0

Image

Image

HDJedi avatar May 18 '25 05:05 HDJedi

By no means an expert, in fact I am hitting your page because I am trying to solve some transparancy issues myself.

But what is in your example, the difference between the buttons for Caroline's lamp and Rob's lamp? And the same for All Office lights and All bedroom lights? Because in each case, one seems to go transparant and the other one does not,

DozoG avatar May 25 '25 06:05 DozoG

Sorry may not have been clear in my first post. After core update (2nd screenshot) Caroline's lamp and all the ones with transparent backgrounds are OFF the light blue ones are ON. In the first screenshot (before update), background is darker blue for OFF and light blue for ON. Hope this makes sense.

HDJedi avatar May 25 '25 13:05 HDJedi

Ah, so if I understand correctly.. after the HA update, the button background is transparent when the state of the light is 'off' ?

The images you provide are confusing because not everything that was dark blue in the first image becomes transparant in the second image. (family room, ceiling lights (office) .. those go from darker blue to light blue in second image)

While none of the buttons that are darker in the first image go transparent; only some of the ones that are lighter in the first image become transparent.

I don't want to waste your time, sorry I do not know the answer. But if the style or button_template or theme are different between some of those buttons.. I would start looking at those. (I have buttons in a picture element card that I want to go transparent, but sometimes they would not... it was an issue with the color_type in one of the button templates.) If between your first image and your second image you have switched/pushed some of the buttons (turned on or off lights) and not other lights.. then its very hard for other people to see what's going on.

DozoG avatar May 25 '25 14:05 DozoG

Hi, the likely change is that with 2025.5, paper CSS variables were removed. Its likely that your theme uses these and they need to be updated. There is a good community post that outlines the changes.

dcapslock avatar Aug 15 '25 03:08 dcapslock

I'll release the version which adresses the HA CSS changes later today. Please report back if it fixes the issue.

RomRider avatar Aug 15 '25 06:08 RomRider

This should be fixed with the 4.2.0 version.

RomRider avatar Aug 29 '25 11:08 RomRider

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 20 '25 02:09 github-actions[bot]

This issue was closed because it has been stalled for 28 days with no activity.

github-actions[bot] avatar Sep 27 '25 02:09 github-actions[bot]