Open
Description
Description: According to the M3 specs, the outline color should be colorOnSurfaceVariant
when unchecked, and colorOnSurface
when pressed, focused, or hovered. Currently MDC always uses colorOnSurfaceVariant
.
This bug exists in both MaterialCheckBox
and MaterialRadioButton
, they will use the same coloring.
Expected behavior: Use colorOnSurface
when unchecked && (pressed || focused || hovered)
.
Source code:
In CheckBox, MDC has only unchecked state color, and the colors in the other three states are missing.
In RadioButton, the other three colors are defined, but should be declared as android:state_checked="false"
instead of true
.
Material Library version: 1.13.0-alpha13