Skip to content

Commit 4ca7cc3

Browse files
manabu-nakamuraimhappi
authored andcommitted
[Docs] update DatePicker.md
Resolves #4386 GIT_ORIGIN_REV_ID=b98ed8eb5c0f9ae9b65e1fea8ccddb4e4b3f0602 PiperOrigin-RevId: 706764681
1 parent 8fb6ea3 commit 4ca7cc3

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

docs/components/DatePicker.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -426,16 +426,7 @@ date pickers and affect other components:
426426
...
427427
<item name="colorPrimary">@color/shrine_pink_100</item>
428428
<item name="colorOnPrimary">@color/shrine_pink_900</item>
429-
<item name="shapeAppearanceSmallComponent">@style/ShapeAppearance.App.SmallComponent</item>
430-
<item name="shapeAppearanceMediumComponent">@style/ShapeAppearance.App.MediumComponent</item>
431-
</style>
432-
433-
<style name="ShapeAppearance.App.SmallComponent" parent="ShapeAppearance.Material3.SmallComponent">
434-
<item name="cornerFamily">cut</item>
435-
</style>
436-
437-
<style name="ShapeAppearance.App.MediumComponent" parent="ShapeAppearance.Material3.MediumComponent">
438-
<item name="cornerSize">16dp</item>
429+
<item name="shapeCornerFamily">cut</item>
439430
</style>
440431
```
441432

@@ -451,11 +442,10 @@ all date pickers but do not affect other components:
451442
<style name="ThemeOverlay.App.DatePicker" parent="@style/ThemeOverlay.Material3.MaterialCalendar">
452443
<item name="colorPrimary">@color/shrine_pink_100</item>
453444
<item name="colorOnPrimary">@color/shrine_pink_900</item>
454-
<item name="shapeAppearanceSmallComponent">@style/ShapeAppearance.App.SmallComponent</item>
455-
<item name="shapeAppearanceMediumComponent">@style/ShapeAppearance.App.MediumComponent</item>
445+
<item name="shapeCornerFamily">cut</item>
456446
<!-- Customize text field of the text input mode. -->
457447
<item name="textInputStyle">@style/Widget.App.TextInputLayout</item>
458-
</style>
448+
</style>
459449
```
460450

461451
Set the theme in code, which affects only this date picker:

0 commit comments

Comments
 (0)