Skip to content

Commit 168ebfb

Browse files
authored
Тextarea - fix label position (#14289)
1 parent 433314c commit 168ebfb

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

projects/igniteui-angular/src/lib/core/styles/components/input/_input-group-component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@
137137
@extend %textarea-group--outlined !optional;
138138
}
139139

140+
@include mx(textarea-group, box) {
141+
@extend %textarea-group--box !optional;
142+
}
143+
140144
@include mx(textarea-group, focused) {
141145
@include e(label) {
142146
@extend %textarea-group-label--focused !optional;

projects/igniteui-angular/src/lib/core/styles/components/input/_input-group-theme.scss

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,11 +1014,24 @@
10141014
}
10151015
}
10161016

1017-
%form-group-textarea-label {
1018-
transition-duration: 0ms;
1019-
}
1020-
10211017
@if $material-theme {
1018+
%form-group-textarea-label {
1019+
top: calc($input-top-padding - #{rem(1px)});
1020+
margin-block-end: auto;
1021+
}
1022+
1023+
%textarea-group--outlined {
1024+
%form-group-textarea-label {
1025+
top: calc($input-top-padding - #{rem(3px)});
1026+
}
1027+
}
1028+
1029+
%textarea-group--box {
1030+
%form-group-textarea-label {
1031+
top: calc($input-top-padding - #{rem(2px)});
1032+
}
1033+
}
1034+
10221035
%textarea-group-label--focused {
10231036
transform: translateY(0);
10241037
top: calc(#{$input-top-padding} / 4);

0 commit comments

Comments
 (0)