Skip to content

Commit d7cecac

Browse files
authored
fix: Change uui-button height to min-height and remove the height from button inside (#271)
* Update uui-button.element.ts * fix height in file input
1 parent e984f3c commit d7cecac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class UUIButtonElement extends FormControlMixin(
5252
--uui-button-padding-left-factor: 3;
5353
--uui-button-padding-right-factor: 3;
5454
55-
height: var(--uui-button-height, var(--uui-size-11));
55+
min-height: var(--uui-button-height, var(--uui-size-11));
5656
max-height: 100%;
5757
cursor: pointer;
5858
@@ -89,7 +89,6 @@ export class UUIButtonElement extends FormControlMixin(
8989
}
9090
9191
#button {
92-
height: 100%;
9392
width: 100%;
9493
background-color: transparent;
9594
color: inherit;

packages/uui-input-file/lib/uui-input-file.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class UUIInputFileElement extends FormControlMixin(LitElement) {
6262
padding: 16px;
6363
box-sizing: border-box;
6464
justify-content: center;
65-
align-items: center;
65+
align-items: stretch;
6666
}
6767
`,
6868
];

0 commit comments

Comments
 (0)