Skip to content

Commit 6dbf374

Browse files
authored
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.
1 parent c1c2392 commit 6dbf374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/uui-button/lib/uui-button.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class UUIButtonElement extends UUIFormControlMixin(
292292
}
293293
294294
.label {
295-
line-height: normal; /** needed to reset 'a > span' */
295+
line-height: 1; /** needed to reset 'a > span' */
296296
transition: opacity 120ms;
297297
display: flex;
298298
gap: var(--uui-size-1);

0 commit comments

Comments
 (0)