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 fc1eae9 commit 9cf7c89
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 @@ -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;
}

0 comments on commit 9cf7c89

Please sign in to comment.