-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[iOS, Mac] Fix for RadioButton TextColor for plain Content not working #31940
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
base: main
Are you sure you want to change the base?
Changes from all commits
ec4e66d
3638015
d0637a5
270c88e
8a9172d
bdf9816
7dfbfd0
4f6ed55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,10 @@ static View ConfigureView(View view, ContentPresenter presenter) | |
return view; | ||
} | ||
|
||
static Label ConvertToLabel(string textContent, ContentPresenter presenter) | ||
static ContentLabel ConvertToLabel(string textContent, ContentPresenter presenter) | ||
{ | ||
var label = new Label | ||
// Use ContentLabel instead of Label to avoid interference from global styles | ||
var label = new ContentLabel | ||
{ | ||
Text = textContent | ||
}; | ||
|
@@ -129,4 +130,7 @@ static bool HasTemplateAncestor(ContentPresenter presenter, Type type) | |
return false; | ||
} | ||
} | ||
|
||
// Internal label type used by ContentPresenter to avoid interference from global Label styles. | ||
class ContentLabel : Label { } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can include a comment here?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jsuarezruiz, I have added a comment. |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include a related tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsuarezruiz, Tried to add test using Application.Current.Resources, but it breaks the other test cases.