International · SU-197 · SU-198
Right-to-left layouts mirror what has direction
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Back button
points left, sits at the end -
Progress
left: 0 · fills from left
-
Row icon
next to its label
الإشعارات
اكتمال الملف الشخصي 70%
الإشعارات
اكتمال الملف الشخصي 70%
-
Row icon
stranded at the far edge
-
Back button
mirrored · at inline-start -
Progress
inset-inline-start: 0
What changes
- Bad
- In Arabic the back arrow points left at the far end, the bell is stranded from its label, and the
70%bar still fills from the left. - Good
- Logical properties flip the layout: the back arrow is mirrored at the start, the bell sits by its label, and the
70%bar fills from the right.
The rules
-
SU-197
Direction-agnostic CSS. Use logical properties (
margin-inline-start,padding-inline,inset-inline-end,border-inline-start,text-align: start) and setdiron<html>. Usedir="auto"on containers of user-written text. Rows flip by themselves with flex and grid. -
SU-198
Mirror what has direction, and nothing else. Mirror in RTL: back/forward arrows, chevrons in lists and breadcrumbs, sliders, linear progress (Hebrew is an exception), send/reply and other motion icons. Don't mirror: logos, checkmarks, clocks, circular progress and refresh, media controls, real-world objects, or the digits inside numbers.