-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[iOS/MacOs] Right-To-Left (RTL) alignment is not applied to Editor placeholder - fix #30057
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?
Conversation
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.
Pull Request Overview
A fix to ensure the Editor placeholder on iOS/MacOS respects RTL alignment by copying the semantic content attribute and text alignment from the main control.
- Set
SemanticContentAttribute
andTextAlignment
on the placeholder label inUpdatePlaceholderLabelFrame
Comments suppressed due to low confidence (2)
src/Core/src/Platform/iOS/MauiTextView.cs:149
- [nitpick] Consider adding unit tests to verify that the placeholder label correctly applies the semantic content attribute and text alignment in both LTR and RTL layouts.
_placeholderLabel.SemanticContentAttribute = SemanticContentAttribute;
src/Core/src/Platform/iOS/MauiTextView.cs:151
- The stray '};' at the end of the method appears to be a typo and will cause a compile error. It should likely be a single '}' without the semicolon.
};
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. |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
public void RTLShouldBeAppliedToPlaceholers() | ||
{ | ||
App.WaitForElement("Editor"); | ||
VerifyScreenshot(); |
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.
Content = new VerticalStackLayout | ||
{ | ||
FlowDirection = FlowDirection.RightToLeft, | ||
Children = |
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.
Could the test also verify changes at runtime? like change the FlowDirection tapping a Button.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issues Fixed
Fixes #30052