From 473c0e305b695d34e0d391e8e0f693e4664bfa02 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 26 Nov 2024 18:06:23 +0100 Subject: [PATCH] center align icons --- packages/uui-icon/lib/uui-icon.element.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/uui-icon/lib/uui-icon.element.ts b/packages/uui-icon/lib/uui-icon.element.ts index 36f4c4836..d04d66988 100644 --- a/packages/uui-icon/lib/uui-icon.element.ts +++ b/packages/uui-icon/lib/uui-icon.element.ts @@ -139,8 +139,9 @@ export class UUIIconElement extends LitElement { static styles = [ css` :host { - display: inline-block; - vertical-align: bottom; + display: inline-flex; + align-items: center; + justify-content: center; width: 1.125em; height: 1.125em; }