Skip to content

Commit 44bfe2d

Browse files
committedAug 18, 2023
[Docs][Button] Update example in docs to use colorContainer and colorOnContainer instead of colorPrimary and colorOnPrimary.
Resolves #3526 PiperOrigin-RevId: 558196799
1 parent 9a4c21d commit 44bfe2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎docs/components/Button.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1018,13 +1018,13 @@ theme to all buttons but does not affect other components:
10181018
<item name="shapeAppearance">@style/ShapeAppearance.App.SmallComponent</item>
10191019
</style>
10201020

1021-
<style name="ThemeOverlay.App.Button.TextButton" parent="">
1022-
<item name="colorPrimary">@color/shrine_pink_900</item>
1021+
<style name="ThemeOverlay.App.Button.TextButton" parent="ThemeOverlay.Material3.Button.TextButton">
1022+
<item name="colorOnContainer">@color/shrine_pink_900</item>
10231023
</style>
10241024

1025-
<style name="ThemeOverlay.App.Button" parent="">
1026-
<item name="colorPrimary">@color/shrine_pink_100</item>
1027-
<item name="colorOnPrimary">@color/shrine_pink_900</item>
1025+
<style name="ThemeOverlay.App.Button" parent="ThemeOverlay.Material3.Button">
1026+
<item name="colorContainer">@color/shrine_pink_100</item>
1027+
<item name="colorOnContainer">@color/shrine_pink_900</item>
10281028
</style>
10291029
```
10301030

0 commit comments

Comments
 (0)
Please sign in to comment.