Skip to content

Commit 5c918c5

Browse files
committed
fix(input-group): fix textarea positioning
1 parent c4a0193 commit 5c918c5

File tree

2 files changed

+9
-45
lines changed

2 files changed

+9
-45
lines changed

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

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@
258258
@extend %form-group-label--box !optional;
259259
}
260260

261-
@include e(textarea) {
262-
@extend %form-group-textarea--box !optional;
263-
}
264-
265261
@include e(hint) {
266262
@extend %form-group-helper--box !optional;
267263
}
@@ -277,10 +273,6 @@
277273
@include e(bundle-main) {
278274
@extend %form-group-bundle-main--box-cosy !optional;
279275
}
280-
281-
@include e(textarea) {
282-
@extend %form-group-textarea--box-cosy !optional;
283-
}
284276
}
285277

286278
@include mx(box, compact) {
@@ -293,10 +285,6 @@
293285
@include e(bundle-main) {
294286
@extend %form-group-bundle-main--box-compact !optional;
295287
}
296-
297-
@include e(textarea) {
298-
@extend %form-group-textarea--box-compact !optional;
299-
}
300288
}
301289

302290
@include mx(disabled, box) {
@@ -333,10 +321,6 @@
333321
@extend %form-group-label--border !optional;
334322
}
335323

336-
@include e(textarea) {
337-
@extend %form-group-textarea--box !optional;
338-
}
339-
340324
@include e(hint) {
341325
@extend %form-group-helper--box !optional;
342326
}
@@ -373,10 +357,6 @@
373357
@include e(bundle-main) {
374358
@extend %form-group-bundle-main--box-cosy !optional;
375359
}
376-
377-
@include e(textarea) {
378-
@extend %form-group-textarea--box-cosy !optional;
379-
}
380360
}
381361

382362
@include mx(border, cosy, filled) {
@@ -413,10 +393,6 @@
413393
@include e(bundle-main) {
414394
@extend %form-group-bundle-main--box-compact !optional;
415395
}
416-
417-
@include e(textarea) {
418-
@extend %form-group-textarea--box-compact !optional;
419-
}
420396
}
421397

422398
@include mx(border, compact, filled) {
@@ -616,7 +592,7 @@
616592
}
617593

618594
@include e(textarea) {
619-
@extend %form-group-textarea--box !optional;
595+
@extend %form-group-textarea--indigo !optional;
620596
}
621597

622598
@include e(hint) {
@@ -636,7 +612,7 @@
636612
}
637613

638614
@include e(textarea) {
639-
@extend %form-group-textarea--box-cosy !optional;
615+
@extend %form-group-textarea--indigo-cosy !optional;
640616
}
641617
}
642618

@@ -652,7 +628,7 @@
652628
}
653629

654630
@include e(textarea) {
655-
@extend %form-group-textarea--box-compact !optional;
631+
@extend %form-group-textarea--indigo-compact !optional;
656632
}
657633
}
658634

@@ -856,10 +832,6 @@
856832
@extend %form-group-label--box !optional;
857833
}
858834

859-
@include e(textarea) {
860-
@extend %form-group-textarea--box !optional;
861-
}
862-
863835
@include e(hint) {
864836
@extend %form-group-helper--box !optional;
865837
}
@@ -875,10 +847,6 @@
875847
@include e(bundle-main) {
876848
@extend %form-group-bundle-main--box-cosy !optional;
877849
}
878-
879-
@include e(textarea) {
880-
@extend %form-group-textarea--box-cosy !optional;
881-
}
882850
}
883851

884852
@include mx(search, compact) {
@@ -891,10 +859,6 @@
891859
@include e(bundle-main) {
892860
@extend %form-group-bundle-main--box-compact !optional;
893861
}
894-
895-
@include e(textarea) {
896-
@extend %form-group-textarea--box-compact !optional;
897-
}
898862
}
899863

900864
@include mx(focused, search) {

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,16 +1066,16 @@
10661066
margin-#{$right}: -#{rem(16px, map-get($base-scale-size, 'compact'))};
10671067
}
10681068

1069-
%form-group-textarea--box {
1070-
margin: 0 -#{rem(16px, map-get($base-scale-size, 'comfortable'))};
1069+
%form-group-textarea--indigo {
1070+
margin-top: -#{rem(24px, map-get($base-scale-size, 'comfortable'))} !important;
10711071
}
10721072

1073-
%form-group-textarea--box-cosy {
1074-
margin: 0 -#{rem(16px, map-get($base-scale-size, 'cosy'))};
1073+
%form-group-textarea--indigo-cosy {
1074+
margin-top: -#{rem(24px, map-get($base-scale-size, 'cosy'))} !important;
10751075
}
10761076

1077-
%form-group-textarea--box-compact {
1078-
margin: 0 -#{rem(16px, map-get($base-scale-size, 'compact'))};
1077+
%form-group-textarea--indigo-compact {
1078+
margin-top: -#{rem(24px, map-get($base-scale-size, 'compact'))} !important;
10791079
}
10801080

10811081
%form-group-prefix,

0 commit comments

Comments
 (0)