Skip to content

[MaterialDatePicker] Button colors are not showing correctly #3090

@leinardi

Description

@leinardi

Description: The button colors are not showing correctly on API < 30. The text and background color are pink, like the color attribute from the theme was not set. But the rest of the UI of the Dialog seems fine.

API 25:
image

API 29:
image

API 30:
image

Expected behavior: Screenshots and/or description of expected behavior

Source code: The App theme is extending Theme.Material3.DayNight.NoActionBar but it's setting only colorPrimary, colorPrimaryDark and colorAccent (since this is a Compose only app, I'm trying to keep the XML theme attributes to the minimum).

Minimal sample app repro: Repro project available here: https://github.com/leinardi/Forlago/tree/date-piker

Android API version: The issue happens on API < 30 (tested on 29 and 25)

Material Library version: 1.7.0

Device: Emulator (Nexus 5)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions