Skip to content
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

deprecated "paper-card-background-color" #359

Closed
porebas opened this issue Jul 23, 2020 · 5 comments · Fixed by #362
Closed

deprecated "paper-card-background-color" #359

porebas opened this issue Jul 23, 2020 · 5 comments · Fixed by #362
Labels
bug Something isn't working

Comments

@porebas
Copy link

porebas commented Jul 23, 2020

The theme variable paper-card-background-color is officially removed. It's recommended to use ha-card-background or card-background-color as a replacement.

@DavidFW1960
Copy link

Yeah and updated themes are removing that variable now as well so I had a screen of white cards because of this

@FaintGhost
Copy link

same here.

@kalkih kalkih added the bug Something isn't working label Jul 28, 2020
@kalkih
Copy link
Owner

kalkih commented Jul 28, 2020

The card is already using ha-card-background primarily, it does however fallback to paper-card-background-color if ha-card-background isn't set, and then white as last resort.

background: var(--ha-card-background, var(--paper-card-background-color, white));

Do you have link or something to the source of this deprecated / breaking change?

@DavidFW1960
Copy link

It's a breaking change in Frontend Themes listed here https://www.home-assistant.io/blog/2020/07/22/release-113/ (It's the last breaking change)
Try using the Google Dark Theme from here https://github.com/JuanMTech/google_dark_theme
Juan removed

paper-card-background-color: var(--card-background-color)

And the cards all go white. There is no --ha-card-background in that theme and --paper-card-background-color has been removed. I edited the js file for the card to change --paper-card-background-color to --card-background-color and its fixed.

@kalkih
Copy link
Owner

kalkih commented Aug 3, 2020

New release now available, the deprecated variable have been replaced.

@kalkih kalkih closed this as completed Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants