mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(input): date type in ion-input now aligns correctly on iOS 15 (#24217)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user