Icons and Visual Elements in RTL
You'll learn which icons require horizontal flipping in right-to-left layouts and which should stay exactly as they are.
When supporting RTL languages like Arabic or Hebrew, not all visual elements should mirror. Understanding this distinction prevents confusing or broken interfaces.
The Mirroring Rule
Icons that represent directional actions or movement should flip horizontally in RTL contexts. These include:
- Navigation arrows (back/forward, next/previous)
- Chevrons and carets pointing left or right
- Undo/redo icons (these swap positions!)
- Text alignment icons (left-align becomes right-align)
- Lists with bullets on one side
- Progress indicators moving horizontally
Think of it like reading direction: if an icon suggests "go forward in content," it should point in the direction your eyes naturally move.
Icons That Never Flip
Many icons are semantically universal and should remain unchanged:
- Play/pause buttons (▶️ always points right, globally understood)
- Volume controls
- Magnifying glass (search)
- Clocks and time
- Mathematical symbols (+, -, ×, ÷)
- Brand logos
- Photos and images with text
These represent universal concepts or physical objects that don't change based on reading direction.
Implementation Approach
Use CSS transformations conditionally:
[dir="rtl"] .icon-arrow-forward {
transform: scaleX(-1);
}
/* Icons that should never flip */
.icon-play,
.icon-search,
.brand-logo {
transform: none !important;
}
Better yet, use separate RTL icon variants when available to avoid transform artifacts on complex icons.
Key Takeaway: Only flip icons that represent directional movement or position—leave universal symbols, media controls, and logos unchanged to maintain their globally recognized meaning.