From 979bf3b3f0b995f965560647bbf98e8030ed4f32 Mon Sep 17 00:00:00 2001 From: Paul T Date: Sat, 30 Jun 2018 17:30:09 -0400 Subject: [PATCH] Fix to CSS for custom icon sizes --- src/box-icon-element.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/box-icon-element.js b/src/box-icon-element.js index be7883c..d474736 100644 --- a/src/box-icon-element.js +++ b/src/box-icon-element.js @@ -37,6 +37,12 @@ TEMPLATE.innerHTML = ` width: 3.0rem; height: 3.0rem; } + +:host([size]:not([size=""]):not([size=xs]):not([size=sm]):not([size=md]):not([size=lg])) { + width: auto; + height: auto; +} + :host([shape=square]) #icon { padding: .25em; border: .07em solid rgba(0,0,0,.1);