ofekashery / vertical-stack-in-card

📐 Home Assistant Card: Group multiple cards into a single sleek card.
MIT License
897 stars 79 forks source link

Background shoudn't be inherrited in cards #143

Closed michalolborski closed 1 year ago

michalolborski commented 1 year ago

Basically extension is working well because default card's background is not set as transparent. If you will go in this way by specifying f.e. --ha-card-background as rgba(0, 0, 0, 0.6) then you can easily notice that background is added twice - to the whole card and also to child cards.

There is an easy fix for that: in lines 131 and 155 you need to add: ele.style.background = 'none'; it does exactly the same like for borders ;)

please check screenshot for reference: image

PR: https://github.com/ofekashery/vertical-stack-in-card/pull/144

ofekashery commented 1 year ago

Hi @michalolborski, this change might be breaking for other users. Please use the styles option:

type: 'custom:vertical-stack-in-card'
styles: 
  background: none