From 3c7da204c521f51b2c218ed31b84e6df667d9333 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 14 Sep 2021 11:43:43 -0600 Subject: [PATCH] Fix button icons so they don't get space when not there --- api/js/etemplate/Et2Button/Et2Button.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Button/Et2Button.ts b/api/js/etemplate/Et2Button/Et2Button.ts index bd1af57288..13b4c8441f 100644 --- a/api/js/etemplate/Et2Button/Et2Button.ts +++ b/api/js/etemplate/Et2Button/Et2Button.ts @@ -36,10 +36,14 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton)) display: none; } /* Set size for icon */ - ::slotted([slot="icon"]) { + ::slotted([slot="icon"][src]) { width: 20px; padding-right: 3px; - }`, + } + ::slotted([slot="icon"][src='']) { + display: none; + } + `, ]; }