fix(input): date type in ion-input now aligns correctly on iOS 15 (#24213)

This commit is contained in:
Sean Perkins
2021-11-12 14:35:12 -05:00
committed by GitHub
parent fc1eae982d
commit 9cf7c89704

View File

@ -310,3 +310,10 @@ ion-accordion-group.accordion-group-expand-inset.md ion-accordion.accordion-expa
ion-accordion-group.accordion-group-expand-inset.md ion-accordion.accordion-expanded:first-of-type {
margin-top: 0;
}
// Safari/iOS 15 changes the appearance of input[type="date"].
// For backwards compatibility from Ionic 5/Safari 14 designs,
// we override the appearance only when using within an ion-input.
ion-input input::-webkit-date-and-time-value {
text-align: start;
}