All writing
UI 2 min read

Right to left, not a mirror

RTL is not a mirror, sorry

Copying a frame and flipping it looks done, but the icons, the logo and the spacing are wrong.

Nabhak "Yhai" S.Product Designer at OOZOU, Bangkok

Flipping the frame is not RTL

It looks done. It is not.

Arabic and Hebrew read right to left. RTL for short. The tempting shortcut is to copy every frame and flip it horizontally.

A flipped frame mirrors everything. The search icon points the wrong way. Clock hands run backwards. The logo reads in reverse.

Mirroring moves things. It does not re-space them.

A flipped frame mirrors everything.

What flips, what stays

Mirror
  • Arrows: back, forward, navigate
  • Reply and forward
  • Undo and redo
  • Progress bars and sliders
Never mirror
  • Search
  • Clock and time
  • Check, close, play and other media controls
  • Logos, prices and phone numbers

Start and end, not left and right

The fix is a mental one. Stop thinking "align left, align right". Think "align start, align end".

In LTR, start is left. In RTL, start is right.

Design with start and end. The layout follows the reading direction on its own.

I bring this to developers early. So the code uses margin-inline-start, not margin-left, from day one.

In LTR, start is left. In RTL, start is right.

Mixed text is the hard part

A page in pure Arabic is fine. Real content is mixed.

An English place name inside an Arabic sentence. A price. A URL. A "Book now" button next to Arabic copy.

Two directions on one line is called bidirectional text.

Two directions on one line is called bidirectional text. It breaks in odd ways, so the spec gets hard rules.

  • English names stay LTR and untranslated.
  • Numbers stay LTR, always.
  • Mixed strings get RTL as the base direction. The browser handles the rest.
  • Every mixed pattern gets its own test case.

Who checks it

I do not read Arabic. So I cannot see half the problems.

A layout can look right to me and still read wrong.

The client's team checked the result. I ran the design QC.

AI can draft the lists and the test strings. It cannot vouch for the grammar.

It will not be in the meeting explaining the design. I will.

Want to talk shop?

A question, a different take or a story of your own? Email me. No newsletter, no pop-up.