Skip to content

Commit 73cfc6a

Browse files
committed
fix: input heights
1 parent 42a688a commit 73cfc6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/text-fields/formfields.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ fieldset.form-field legend {
7878
user-select: none;
7979
}
8080
fieldset.form-field input, fieldset.form-field select {
81+
--mw-calc-input-height: calc(var(--mw-input-height) - var(--label-size) + 2 * var(--mw-border-width));
8182
box-sizing: border-box;
8283
font-size: var(--font-size);
8384
padding: 0;
8485
margin: 0;
8586
width: 100%;
86-
height: calc(var(--mw-input-height) - var(--label-size) + 2 * var(--mw-border-width));
87+
height: var(--mw-calc-input-height);
88+
max-height: var(--mw-calc-input-height);
8789
margin-top: calc(-1 * var(--half-lbl));
8890
padding-left: calc(var(--mw-padding-left) - var(--mw-border-width));
8991
border: none;

0 commit comments

Comments
 (0)