Skip to content

Commit

Permalink
[M3][DatePicker] Fix M3 date picker styles
Browse files Browse the repository at this point in the history
Some attributes were wrongly added to the styles. We need to remove them to make the color correct.

PiperOrigin-RevId: 409241943
  • Loading branch information
drchen committed Nov 16, 2021
1 parent cc18f3f commit fba1a34
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -234,7 +234,6 @@

<style name="Widget.Material3.MaterialCalendar.HeaderCancelButton" parent="Widget.Material3.Button.TextButton">
<item name="iconTint">?attr/colorOnSurfaceVariant</item>
<item name="rippleColor">@color/m3_button_ripple_color</item>
<item name="materialThemeOverlay">@style/ThemeOverlay.Material3.MaterialCalendar.HeaderCancelButton</item>
</style>

Expand Down Expand Up @@ -306,7 +305,6 @@
<item name="itemFillColor">?attr/colorPrimary</item>
<item name="itemTextColor">?attr/colorOnPrimary</item>
<item name="itemStrokeWidth">0dp</item>
<item name="itemStrokeColor">?attr/colorPrimary</item>
</style>

<style name="Widget.Material3.MaterialCalendar.Year.Today">
Expand All @@ -327,7 +325,7 @@
</style>

<style name="ThemeOverlay.Material3.MaterialCalendar.HeaderCancelButton" parent="ThemeOverlay.Material3.Button.TextButton">
<item name="colorOnContainer">?attr/colorOnSurfaceVariant</item>
<item name="colorOnContainer">?attr/colorOnSurfaceVariant</item>
</style>

</resources>

0 comments on commit fba1a34

Please sign in to comment.