Skip to content

Commit 7611599

Browse files
committed
fix(input-group): bring in lost line-height fix after merge
1 parent 961e39d commit 7611599

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,6 @@
966966
display: block;
967967
border: none;
968968
height: rem(32px, map-get($base-scale-size, 'comfortable'));
969-
line-height: 0 !important; /* resets typography styles */
970969
width: 100%;
971970
min-width: 0;
972971
overflow: visible;
@@ -977,13 +976,18 @@
977976
border-top: rem(3px) solid transparent;
978977
padding-bottom: rem(3px);
979978

979+
&:not([type='date']) {
980+
line-height: 0 !important; /* Reset typography */
981+
}
982+
980983
&::-webkit-input-placeholder {
981984
line-height: normal;
982985
}
983986

984987
&::placeholder {
985988
color: --var($theme, 'placeholder-color');
986989
opacity: 1;
990+
line-height: normal; /* Fix placeholder position in Safari */
987991
}
988992
}
989993

0 commit comments

Comments
 (0)