Skip to content

[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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Jun 18, 2025

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

Before After

@Copilot Copilot AI review requested due to automatic review settings June 18, 2025 18:11
@kubaflo kubaflo requested a review from a team as a code owner June 18, 2025 18:11
@kubaflo kubaflo self-assigned this Jun 18, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 and TextAlignment on the placeholder label in UpdatePlaceholderLabelFrame
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.
			};

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jun 18, 2025
Copy link
Contributor

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.

@kubaflo kubaflo added area-controls-editor Editor community ✨ Community Contribution and removed community ✨ Community Contribution labels Jun 18, 2025
@NirmalKumarYuvaraj
Copy link
Contributor

@kubaflo , #25129 This PR covers both initial loading and dynamic scenarios, such as TextAlignment and FlowDirection.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

public void RTLShouldBeAppliedToPlaceholers()
{
App.WaitForElement("Editor");
VerifyScreenshot();
Copy link
Contributor

Choose a reason for hiding this comment

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

Pending snapshots already available on the latest build.
image
Could you commit the images?

Content = new VerticalStackLayout
{
FlowDirection = FlowDirection.RightToLeft,
Children =
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS/MacOs] Right-To-Left (RTL) alignment is not applied to Editor placeholder
3 participants