Skip to content


[Docs][Button] Update example in docs to use colorContainer and `co…
Browse files Browse the repository at this point in the history
…lorOnContainer` instead of `colorPrimary` and `colorOnPrimary`.

Resolves #3526

PiperOrigin-RevId: 558196799
  • Loading branch information
imhappi committed Aug 18, 2023
1 parent 9a4c21d commit 44bfe2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/components/
Expand Up @@ -1018,13 +1018,13 @@ theme to all buttons but does not affect other components:
<item name="shapeAppearance">@style/ShapeAppearance.App.SmallComponent</item>

<style name="ThemeOverlay.App.Button.TextButton" parent="">
<item name="colorPrimary">@color/shrine_pink_900</item>
<style name="ThemeOverlay.App.Button.TextButton" parent="ThemeOverlay.Material3.Button.TextButton">
<item name="colorOnContainer">@color/shrine_pink_900</item>

<style name="ThemeOverlay.App.Button" parent="">
<item name="colorPrimary">@color/shrine_pink_100</item>
<item name="colorOnPrimary">@color/shrine_pink_900</item>
<style name="ThemeOverlay.App.Button" parent="ThemeOverlay.Material3.Button">
<item name="colorContainer">@color/shrine_pink_100</item>
<item name="colorOnContainer">@color/shrine_pink_900</item>

Expand Down

0 comments on commit 44bfe2d

Please sign in to comment.