Skip to content

Commit 5d261f5

Browse files
leticiarossihunterstich
authored andcommitted
[Checkbox] Update unselected outline color to ?attr/colorOnSurfaceVariant to match tokens.
PiperOrigin-RevId: 484295821
1 parent e393748 commit 5d261f5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/java/com/google/android/material/checkbox/res/color/m3_checkbox_button_tint.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
<item android:color="@macro/m3_comp_checkbox_selected_container_color" android:state_checked="true"/>
3232

3333
<!-- Unchecked -->
34-
<item android:color="?attr/colorOnSurface" android:state_checked="false"/>
34+
<item android:color="@macro/m3_comp_checkbox_unselected_outline_color" android:state_checked="false"/>
3535
</selector>

lib/java/com/google/android/material/checkbox/res/values/tokens.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<resources>
2121
<!-- Generated from token set (md.comp.checkbox) in default context. -->
2222
<!-- Enabled - Container -->
23+
<macro name="m3_comp_checkbox_unselected_outline_color">?attr/colorOnSurfaceVariant</macro>
2324
<macro name="m3_comp_checkbox_selected_container_color">?attr/colorPrimary</macro>
2425
<macro name="m3_comp_checkbox_selected_error_container_color">?attr/colorError</macro>
2526
<!-- Enabled - Icon -->

0 commit comments

Comments
 (0)