Skip to content

Commit da4cf04

Browse files
authored
Merge pull request #7539 from IgniteUI/mpopov/input-placeholder-position-master
Fix input placeholder position in safari
2 parents b306360 + 304dc2b commit da4cf04

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
@@ -889,7 +889,6 @@
889889
display: block;
890890
border: none;
891891
height: rem(32px, map-get($base-scale-size, 'comfortable'));
892-
line-height: 0 !important; /* resets typography styles */
893892
width: 100%;
894893
min-width: 0;
895894
overflow: visible;
@@ -900,13 +899,18 @@
900899
border-top: rem(3px) solid transparent;
901900
padding-bottom: rem(3px);
902901

902+
&:not([type='date']) {
903+
line-height: 0 !important; /* resets typography styles */
904+
}
905+
903906
&::-webkit-input-placeholder {
904907
line-height: normal;
905908
}
906909

907910
&::placeholder {
908911
color: --var($theme, 'placeholder-color');
909912
opacity: 1;
913+
line-height: normal; /* Fix placeholder position in Safari */
910914
}
911915
}
912916

0 commit comments

Comments
 (0)