radio-buttonmauitextcolorios-darkmode

.NET Maui radio button text not visible in dark mode?


Anyone else notice that the RadioButton Content (at least on iOS) ignores the TextColor attribute? In Dark mode it displays the content as white text no matter what I set it to.

<RadioButton Content="Black Content Text" TextColor="{AppThemeBinding Light=Black, Dark=Black}" />

Is this a known Maui bug?


Solution

  • Yes, it is. The issue is that when setting TextColor attribute of RadioButton in Mac or iOS, it failed to change the TextColor as expected and not just in dark mode. In conclusion, this is a known issue that being tracked in the link below, you can follow up there.

    https://github.com/dotnet/maui/issues/6430