From 6dbf37455554f07647326d7140db3b75068d2862 Mon Sep 17 00:00:00 2001 From: alevak09 <73195407+alevak09@users.noreply.github.com> Date: Thu, 29 May 2025 13:09:44 +0200 Subject: [PATCH] Fix line-height uui-button.element.ts Using line-height: 1; insted of line-height: normal; in .label css class style fixes vertical alignment ensuring the line height to exactly 1 times the font size. Ensures consistent spacing across different fonts and browsers. --- packages/uui-button/lib/uui-button.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-button/lib/uui-button.element.ts b/packages/uui-button/lib/uui-button.element.ts index 6cb44aa04..9e77eb82a 100644 --- a/packages/uui-button/lib/uui-button.element.ts +++ b/packages/uui-button/lib/uui-button.element.ts @@ -292,7 +292,7 @@ export class UUIButtonElement extends UUIFormControlMixin( } .label { - line-height: normal; /** needed to reset 'a > span' */ + line-height: 1; /** needed to reset 'a > span' */ transition: opacity 120ms; display: flex; gap: var(--uui-size-1);