Skip to content

Commit d5a8ec4

Browse files
committed
fix(): explicitly set top/left styles for datetime
1 parent 8059102 commit d5a8ec4

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

core/src/components/datetime/datetime.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,12 @@
341341
* Explicit position values are required here
342342
* as pseudo element positioning is incorrect
343343
* in older implementations of css grid.
344+
*
345+
* TODO: FW-1720: Remove top/left styles when depreciating iOS 13 support
344346
*/
345-
346-
@include position(50%, null, null, 50%);
347+
top: 50%;
348+
/* stylelint-disable-next-line property-disallowed-list */
349+
left: 50%;
347350

348351
position: absolute;
349352

core/src/components/item/item.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -493,18 +493,6 @@ button, a {
493493
position: relative;
494494
}
495495

496-
// Chrome injects host styles that conflict with the
497-
// positioning of ion-datetime.
498-
// These styles reset the position so that ion-datetime
499-
// displays correctly with multiple inputs in an item.
500-
:host(.item-multiple-inputs) {
501-
@include rtl() {
502-
::slotted(ion-datetime) {
503-
@include position-horizontal(0, 0);
504-
}
505-
}
506-
}
507-
508496
// Item Textarea
509497
// --------------------------------------------------
510498

0 commit comments

Comments
 (0)