Skip to content

Use CSS Logical Properties to have Absolute RTL Support and Faster Gutenberg Editor Experiense and Less Issues and RTL Work and Processing to Do #71799

@babakfp

Description

@babakfp

What problem does this address?

In a RTL site, when using Gutenberg editor, the content is first shown in LTR, 10 slow seconds later, they turn into RTL. This is a slow, painfull and cheap experiense.

What is your proposed solution?

Use CSS Logical Properties. Use it everywhere and anywhere. There should not be a single CSS property that is not logical. There is literally no reason to not use them.

Instead of text-align: left, it would be text-align: start. Read more. There are also more and better articles about the topic out there on the internet.

No need to have a messed up UI and editor when RTL users try to use the Gutenberg editor. No need to wait for 10s for the editor to turn (only some) things to RTL. Things would just work. Less work, less delay and waiting, less bad experiese, just less bad things. It's super easy to get them working. It's just CSS properties. No need for dependencies and processing and build-step to get RTL working.

The editor settings should drop left/right and just use start/end. This would make things amazing for multi-lang websites. Things would just work.

I'm using the editor on a RTL site, and the experiense is supoer slow, bad and ugly. Solving this easy to solve problem and bring greate value and improve ux significantly.

I can help with this if help needed. If you want a PR, or have questions, I'll help.

This request is about using CSS Logical Properties in both the CSS source code of Gutenberg, Gutenberg user-facing controls and etc. This is also about a future where the wp-admin.php (the dashboard) also supports this. Also the addons for Gutenberg to learn and follow this standard.

Class names, attributes and everything most follow logical properties. Everything and anything!


Related issues:


I've been going through RTL related issues, and there is a ton of them, a lot of issues, fixes, discussions, PRs and etc. Tons of time and effort spent on RTL related issues. A portion of these could be avoided by switching to logical properties.


https://wordpress.slack.com/archives/C02QB2JS7/p1758386227133189


@aristath
@skorasaurus
@talldan
@dumitrub
@BicanMarianValeriu

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS StylingRelated to editor and front end styles, CSS-specific issues.Internationalization (i18n)Issues or PRs related to internationalization efforts[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions