Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Fixed RadioButton text related properties not working #20366

Closed
wants to merge 5 commits into from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Feb 5, 2024

Description of Change

When the content was set as plain text, the label created based on that text never applied any text properties.

Issues Fixed

Fixes #19081

Demo
Screen.Recording.2024-02-05.at.18.55.49.mov

@kubaflo kubaflo requested a review from a team as a code owner February 5, 2024 18:20
@ghost ghost added the community ✨ Community Contribution label Feb 5, 2024
@ghost
Copy link

ghost commented Feb 5, 2024

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run

@jsuarezruiz jsuarezruiz added the area-controls-radiobutton RadioButton, RadioButtonGroup label Feb 6, 2024
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Feb 6, 2024
if (radioButton.Content is string
&& handler.VirtualView.PresentedContent is Element element
&& FindLabel(element) is Label label)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the changes in the Mapper, are not similar changes required on Android as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Android radio buttons work without any changes needed. Therefore, I used the preprocessor directives #if IOS to modify only the iOS's mapper

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen
Copy link
Member

PureWeen commented Apr 4, 2024

/rebase

@PureWeen
Copy link
Member

PureWeen commented Apr 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

// We want to modify the text in the content property only if
// the content is a string. In that case we want to apply
// the text values from the radio button
if (radioButton.Content is string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dustin-wojciechowski
Copy link
Contributor

I pulled the latest from main and tested it against your UI Test and it looks like this problem may have already been fixed. See screenshot below:
Simulator Screenshot - iPhone 15 - 2024-05-13 at 16 28 24

@kubaflo
Copy link
Contributor Author

kubaflo commented May 14, 2024

@dustin-wojciechowski I've also tested it and have the same observations. Therefore, I'm closing this PR

@kubaflo kubaflo closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-radiobutton RadioButton, RadioButtonGroup community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS] RadioButton text related properties not working
5 participants