From 89eee944c6083edd3d0a02d02eeba1e0c4c0da8b Mon Sep 17 00:00:00 2001 From: Ben Thomas Date: Thu, 14 Jan 2016 09:33:26 -0700 Subject: [PATCH] Update state-badge.html adding a background-color to the icon-image in this element fixes the issue where images and icons overlap but allows a fallback if an image is not defined. The only situation that this doesn't cover is if an icon is specified and the link is broken (i.e. a 404 on the image), then there will just be a white block. I decided this was actually more useful since then its obvious that there should be an image there. --- src/components/entity/state-badge.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/entity/state-badge.html b/src/components/entity/state-badge.html index a801c1dd1f..bfa89be45e 100644 --- a/src/components/entity/state-badge.html +++ b/src/components/entity/state-badge.html @@ -21,6 +21,7 @@ iron-image { border-radius: 50%; + background-color: #FFFFFF; } ha-state-icon {