Skip to content

Commit 9c528f0

Browse files
authored
fix: line-height set to 1 on uui-button (#1114)
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 8f89db5 commit 9c528f0

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)