Skip to content

Commit

Permalink
text-field: Prevent text from covering label
Browse files Browse the repository at this point in the history
  • Loading branch information
zdhxiong committed Oct 18, 2024
1 parent 2576afc commit dad9107
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/mdui/src/components/text-field/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,21 @@
}
}

:host([variant="filled"]) .label + .input {
.padding-top(22);
.padding-bottom(6);
textarea.input {
padding-top: 0;
.margin-top(14);
}

:host([variant="filled"]) .label {
+ .input {
.padding-top(22);
.padding-bottom(6);
}

+ textarea.input {
padding-top: 0;
.margin-top(22);
}
}

.supporting {
Expand Down

0 comments on commit dad9107

Please sign in to comment.