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; + } + `, ]; }