Skip to content

Commit 25bf40c

Browse files
committed
fix(input-group): label stays fixed to the top in compact and cosy
1 parent 01ba420 commit 25bf40c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,15 @@
510510
backface-visibility: hidden;
511511
will-change: transform;
512512
transform-origin: top left;
513-
transition: transform $transition-timing, color $transition-timing;
513+
transition: transform $transition-timing, color $transition-timing, margin $transition-timing;
514514

515515
[dir='rtl'] & {
516516
transform-origin: top right;
517517
}
518518
}
519519

520520
%form-group-label--cosy {
521-
margin-top: rem(-4.5px);
521+
margin-top: rem(-2px);
522522
}
523523

524524
%form-group-label--compact {
@@ -532,6 +532,7 @@
532532
%form-group-label--float {
533533
overflow: visible;
534534
transform: translateY(-50%) scale(.75);
535+
margin-top: auto;
535536
}
536537

537538
%form-group-label--fixed {

0 commit comments

Comments
 (0)