Skip to content

Commit 654eab1

Browse files
committed
fix(input-group): scope Safari datetime centering fix to border variant
1 parent 44a273b commit 654eab1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • projects/igniteui-angular/input-group/src/input-group/themes/shared

projects/igniteui-angular/input-group/src/input-group/themes/shared/material.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ $input-bottom-spacing: rem(6px);
1919
--_bundle-template-rows: #{var-get($_theme, 'size')};
2020
--_floating-label-position: #{rem(-10px)};
2121

22+
// line/box/search center via padding, not flex — revert _base.scss's fix here
23+
@include e(input) {
24+
&#{&}::-webkit-datetime-edit {
25+
display: revert;
26+
align-items: revert;
27+
height: revert;
28+
}
29+
}
30+
2231
&:has([igxLabel], igx-label) {
2332
--_input-top-spacing: #{$input-top-spacing};
2433
--_input-bottom-spacing: #{$input-bottom-spacing};
@@ -607,6 +616,13 @@ $input-bottom-spacing: rem(6px);
607616
border: none;
608617
outline-style: none;
609618
z-index: 1;
619+
620+
// Zero padding here, so _base.scss's fix applies cleanly
621+
&::-webkit-datetime-edit {
622+
display: flex;
623+
align-items: center;
624+
height: calc(var(--size) - #{rem(1px)});
625+
}
610626
}
611627

612628
@include e(bundle-start) {

0 commit comments

Comments
 (0)