Skip to content
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

List item block cannot be set to RTL #24916

Open
abuyoyo opened this issue Aug 29, 2020 · 4 comments
Open

List item block cannot be set to RTL #24916

abuyoyo opened this issue Aug 29, 2020 · 4 comments
Labels
[Block] List Affects the List Block Internationalization (i18n) Issues or PRs related to internationalization efforts [Type] Enhancement A suggestion for improvement.

Comments

@abuyoyo
Copy link

abuyoyo commented Aug 29, 2020

Describe the bug
Unlike paragraph or header blocks, the list item block does not have a text alignment (or equivalent) option.
This makes editing extremely frustrating (nay - unusable TBH). Especially when dealing with mixed RTL / LTR texts - which is a common occurrence/use-case.

I've found an issues that might or might not be related to this (#138) but it's old and closed.

I'm using an LTR user-locale and editing an RTL post.

@annezazu annezazu added [Block] List Affects the List Block [Type] Enhancement A suggestion for improvement. Internationalization (i18n) Issues or PRs related to internationalization efforts labels Sep 2, 2020
@annezazu
Copy link
Contributor

annezazu commented Sep 2, 2020

@abuyoyo thanks for reporting this! I was able to replicate this with WordPress 5.5.1 without the Gutenberg plugin installed. Here's a video: https://cloudup.com/cQF-wPMvGNk I've added labels to help flag this for the appropriate people.

@kspilarski
Copy link

kspilarski commented Sep 8, 2020

Same case for 3297558-zd, who needs RTL texts:

Paragraph block with text alignment option:
Screen Shot 2020-09-08 at 5 20 29 PM

No text alignment option in the list block:
Screen Shot 2020-09-08 at 5 20 53 PM

@shula
Copy link

shula commented May 2, 2022

Note that alignment and directionality are 2 different things, which give different results.

In this demo, both lines are right-aligned, but first has {direction: ltr;}, the second is {direction: rtl;}

  • אאאאא בבבבב, RTL גגגגג דדדדד 123 !
  • !גגגגגג דדדדד 123 אאאא בבבבב LTR

The direction completely changes the order of the sentence.

@jp-imagines
Copy link

Just spoke with a user who was looking for alignment or appropriate RTL settings on List blocks as well, and it looks like this hasn't been added yet. It's doable with some CSS, but that's very awkward – especially in situations where there's mixed RTL and LTR languages as mentioned in the original issue description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block Internationalization (i18n) Issues or PRs related to internationalization efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants