From 0f729b7a1b0831cb127d026c02f3f23367eeca10 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 3 Aug 2022 10:10:28 -0600 Subject: [PATCH] Center image in button when it has no label --- api/js/etemplate/Et2Button/Et2Button.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/js/etemplate/Et2Button/Et2Button.ts b/api/js/etemplate/Et2Button/Et2Button.ts index 00ae8d2d9c..c9bf1366e5 100644 --- a/api/js/etemplate/Et2Button/Et2Button.ts +++ b/api/js/etemplate/Et2Button/Et2Button.ts @@ -102,6 +102,7 @@ export class Et2Button extends Et2InputWidget(SlButton) /* Only image, no label */ .button--has-prefix:not(.button--has-label) { width: calc(var(--sl-input-height-medium) + var(--sl-input-spacing-small) * 2); + justify-content: center; } `, ];