ionic-team / ionic-team/ionic-framework

bug: ion-datetime date and time pickers do not render correctly on (some) devices with maximum font size set

Aperta
#25,964 12 commenti 0 reazioni 0 assegnatari Vedi su GitHub
package: core type: bug
Lingua principale
TypeScript
Stelle
52.7k
Fork
13.3k
Merge medio
1g 15h
PR unite (30g)
51

Descrizione

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

- [ ] v4.x
- [X] v5.x
- [X] v6.x
- [ ] Nightly

### Current Behavior

Date and Time pickers do not render correctly on Samsung Galaxy S21 when the font size is set to largest.
Labels overlap and make the text unreadable.

NOTE: It only seem to affect **some** android phones (e.g. Galaxy S21).

### Expected Behavior

Rows should not overlap. Text should be visible at any font size setting.

### Steps to Reproduce

1. ionic start choose Angular / Tabs application
2. edit tab1.page.html, comment out (or remove) the `` line
3. add ``
4. add android `npm i @capacitor/android`
5. build a testapp.apk
6. Install the apk on an android device that allows for very large fonts (in my case, Samsung **Galaxy S21**).
7. Open settings and choose the **largest** font size available

Run the app. A page with the current month's calendar appears.
Click on the date picker, you’ll see that the months overlap:

![image](https://user-images.githubusercontent.com/3269489/190904308-85abcd73-1768-480e-b3ca-8568f46f7c55.png)

and

![image](https://user-images.githubusercontent.com/3269489/190904423-40625e59-de8e-41cf-88d9-3c020e3e5658.png)

### Code Reproduction URL

_No response_

### Ionic Info

```

Ionic:

Ionic CLI : 6.20.1 (/home/develop/.local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.9.4
@angular-devkit/build-angular : 13.3.9
@angular-devkit/schematics : 13.3.9
@angular/cli : 13.3.9
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 4.2.0
@capacitor/android : 4.2.0
@capacitor/core : 4.2.0
@capacitor/ios : 4.2.0

Utility:

cordova-res : not installed globally
native-run : 1.7.0

System:

NodeJS : v14.20.0 (/usr/bin/node)
npm : 7.24.2
OS : Linux 5.15
```

### Additional Information

same as reported here: https://forum.ionicframework.com/t/ion-datetime-date-and-time-pickers-do-not-render-correctly-on-devices-with-high-accessibility-settings/225750

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.