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

This commit is contained in:
Sean Perkins
2021-11-12 15:13:37 -05:00
committed by GitHub
parent b2f2a4b71b
commit 0566ec0da3

View File

@@ -201,3 +201,10 @@ ion-card-header.ion-color .ion-inherit-color {
.md .menu-content-push {
box-shadow: $menu-md-box-shadow;
}
// 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;
}