Skip to content

Commit

Permalink
[M3][Button] Add missing attributes to M3 button styles
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 411585842
  • Loading branch information
paulfthomas committed Nov 29, 2021
1 parent 9d86d27 commit 3c9b452
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -124,6 +124,7 @@

<!-- M3 filled button style. -->
<style name="Widget.Material3.Button" parent="Widget.MaterialComponents.Button">
<item name="enforceTextAppearance">false</item>
<item name="android:maxWidth">@dimen/m3_btn_max_width</item>
<item name="android:paddingLeft">@dimen/m3_btn_padding_left</item>
<item name="android:paddingRight">@dimen/m3_btn_padding_right</item>
Expand Down Expand Up @@ -174,6 +175,7 @@

<!-- M3 text button style. -->
<style name="Widget.Material3.Button.TextButton" parent="Widget.MaterialComponents.Button.TextButton">
<item name="enforceTextAppearance">false</item>
<item name="android:maxWidth">@dimen/m3_btn_max_width</item>
<item name="android:paddingLeft">@dimen/m3_btn_text_btn_padding_left</item>
<item name="android:paddingRight">@dimen/m3_btn_text_btn_padding_right</item>
Expand Down

0 comments on commit 3c9b452

Please sign in to comment.