matrix-react-sdk icon indicating copy to clipboard operation
matrix-react-sdk copied to clipboard

Correct text alignment in RTL languages

Open luixxiul opened this issue 3 years ago • 4 comments

For https://github.com/vector-im/element-web/issues/14520 and https://github.com/vector-im/element-web/issues/4771

This PR intends to relieve frustration of RTL language users. cf. https://github.com/matrix-org/matrix-react-sdk/pull/5453

Please mind the position of (edited). cf. https://github.com/matrix-org/matrix-react-sdk/pull/5453#issuecomment-862466809

I modified the declarations for blockquote, ul, and ol to apply logical properties. Since I am not able to read RTL languages, it is not really possible for me to test edge cases though.

The ideal solution would be to implement logical properties all over the UI, but the task is too large for this PR. Therefore adjusting position of UI elements such as timestamp is out of scope.

Before After
IRC layout before1 Untitled2
Modern layout before2 Untitled
Bubble layout before3 Untitled3

type: defect

Signed-off-by: Suguru Hirahara [email protected]


Here's what your changelog entry will look like:

🐛 Bug Fixes

  • Correct text alignment in RTL languages (#9026). Contributed by @luixxiul.

luixxiul avatar Jul 08 '22 14:07 luixxiul

Though I don't find a regression, I think it would be better to merge this PR after some feedback comments are provided from native RTL language speakers.

I've posted a link to the netlify build on https://github.com/matrix-org/matrix-react-sdk/pull/5453#issuecomment-1179037978.

luixxiul avatar Jul 08 '22 14:07 luixxiul

Do we have an example of that kind of tests? Though I am not able to create one from nothing, I could at least try to modify the example.

luixxiul avatar Jul 09 '22 02:07 luixxiul

converting to draft for now- looking for a way of implementing visual tests.

luixxiul avatar Jul 09 '22 02:07 luixxiul

after the weekend the team should be able to help with tests in https://matrix.to/#/#element-dev:matrix.org

turt2live avatar Jul 09 '22 02:07 turt2live

Closed as RTL design will never land at least until Element X

luixxiul avatar Jun 04 '23 03:06 luixxiul