Skip to content

Conversation

@yash-agarwa-l
Copy link
Contributor

This fixes the border radius of the reaction buttons in the message action sheet for RTL languages.

Previously, the "First" button (e.g., thumbs up) and the "More" button (...) had hardcoded rounded corners. In RTL mode, these corners remained on the physical side, which resulted in the inner corners being rounded instead of the outer ones.

We now use BorderRadiusDirectional resolved against the text direction to ensure the outer edges are always the ones rounded.

This addresses the third RTL issue identified by @gnprice in this comment.

Before

Component LTR (English) RTL (Arabic)
First Button
(Thumbs Up)
Before LTR Thumbs Before RTL Thumbs
Last Button
(More ...)
Before LTR More Before RTL More

After

Component LTR (English) RTL (Arabic)
First Button
(Thumbs Up)
After LTR Thumbs After RTL Thumbs
Last Button
(More ...)
After LTR More After RTL More

Previously, the reaction buttons in the message action sheet used
hardcoded physical border radii. In RTL locales, this caused the
rounded corners to appear on the inner edges of the button row
instead of the outer edges.

We now use  and resolve it against the
context's text direction to ensure the correct corners are rounded
regardless of layout direction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant