Skip to content

Commit

Permalink
fix(input): date type in ion-input now aligns correctly on iOS 15 (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins authored Nov 12, 2021
1 parent b2f2a4b commit 0566ec0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/css/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 0566ec0

Please sign in to comment.