-
Notifications
You must be signed in to change notification settings - Fork 1.9k
RadioButton: TextColor for plain Content not working on iOS #18011
Copy link
Copy link
Labels
area-controls-radiobuttonRadioButton, RadioButtonGroupRadioButton, RadioButtonGrouppartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I have a simple RadioButton on a page:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiRadio8.MainPage">
<ScrollView>
<VerticalStackLayout
HorizontalOptions="Center"
VerticalOptions="Center"
Background="Green">
<RadioButton
Content="White"
Value="1"
TextColor="White" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>On iOS the TextColor is not taken into account:
On WinUI for example the text appears correctly in white:

Steps to Reproduce
- Create a new MAUI app from template
- Add the above xml in the
MainPage.xaml
Link to public reproduction project repository
https://github.com/marco-skizza/MauiRadioButtonTextColor
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
Tested on iPad mini 6, iPadOS 16.7.1
Did you find any workaround?
Even though not so nice, it can be fixed with custom Content:
<RadioButton
Value="1">
<RadioButton.Content>
<Label TextColor="White">White</Label>
</RadioButton.Content>
</RadioButton>Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-radiobuttonRadioButton, RadioButtonGroupRadioButton, RadioButtonGrouppartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working