Use --error-color instead of a fixed color (#6961)

Co-authored-by: Zack Barett <zackbarett@hey.com>
This commit is contained in:
Kendell R 2020-09-14 00:37:59 -07:00 committed by GitHub
parent 426f939982
commit f6eb31bf9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,8 +43,8 @@ export class HuiErrorCard extends LitElement implements LovelaceCard {
return css`
:host {
display: block;
background-color: #ef5350;
color: white;
background-color: var(--error-color);
color: var(--color-on-error, white);
padding: 8px;
font-weight: 500;
user-select: text;