Closed ataulm closed 2 years ago
Hi folks, I confirmed with our designers and they are leaning toward not to define the default color of the associated labels of compound buttons. With the Material themes we actually point ?android:attr/textColorPrimaryDisableOnly
to ?attr/colorOnBackground
btw.
In the meantime they are looking into adding more detailed design guidelines regarding the compound button labels on our website.
I'll close this issue for now. : )
Is your feature request related to a problem? Please describe. MaterialRadioButton inherits the text color from
Widget.CompoundButton
, which sets it to an arcane attribute -?android:attr/textColorPrimaryDisableOnly
.We can set this attribute in our theme or we can set
android:textColor
in the layout/our default style/style.Describe the solution you'd like Override
android:textColor
inWidget.MaterialComponents.CompoundButton.RadioButton
:Describe alternatives you've considered
For now, I've explicitly set a default style for the AppCompat/Material RadioButton:
Similar for checkbox and switch!