You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a default new project in Android Studio that uses Theme.Material3.DayNight.NoActionBarwhen you show a MaterialDatePicker and set full screen zoom (320dp width) and 200% font size in system setting, the dialog does not pass WCAG guildelines and Google's own guidelines https://support.google.com/accessibility/android/answer/12159181 "parts of the text to become cropped, cut, or obscured".
You can see on the screenshot that days of week are cut, and days of month are cropped - only the first digit is visible, making the date picker unusable.
Expected behavior:
Follow recommendation from linked guidelines:
Avoid text content with a fixed height and width. Prefer responsive layouts that can readily accommodate different screen sizes, screen orientations, pixel densities, and font sizes.
For example DatePickerDialog from Android SDK handles this correctly:
Description:
Using a default new project in Android Studio that uses
Theme.Material3.DayNight.NoActionBar
when you show aMaterialDatePicker
and set full screen zoom (320dp width) and 200% font size in system setting, the dialog does not pass WCAG guildelines and Google's own guidelines https://support.google.com/accessibility/android/answer/12159181 "parts of the text to become cropped, cut, or obscured".You can see on the screenshot that days of week are cut, and days of month are cropped - only the first digit is visible, making the date picker unusable.
Expected behavior:
Follow recommendation from linked guidelines:
For example
DatePickerDialog
from Android SDK handles this correctly:Source code:
Minimal sample app repro: DateTimePicker.zip
Android API version: API 34
Material Library version: 1.10.0
I'm using the latest version of the
com.google.android.material:material
library.Device: Pixel 7 Pro emulator
The text was updated successfully, but these errors were encountered: