Usability Bidirectionality

Bidirectionality

UIs for languages that are read from right-to-left (RTL), such as Arabic and Hebrew, should be mirrored to ensure content is easy to understand.

UI mirroring overview Expand and collapse content An arrow that points down when collapsed and points up when expanded.

The main difference between left-to-right (LTR) and right-to-left (RTL) language scripts is the direction in which content is displayed:

  • LTR languages display content from left to right
  • RTL languages display content from right to left

RTL content also affects the direction in which some icons and images are displayed, particularly those depicting a sequence of events.

In general, the passage of time is depicted as left to right for LTR languages, and right to left for RTL languages.

Element

LTR

RTL

Text

Sentences are read from left to right.

Sentences are read from right to left.

Timeline

An illustrated sequence of events progresses left to right.

An illustrated sequence of events progresses right to left.

Imagery

An arrow pointing left to right indicates forward motion: →

An arrow pointing right to left indicates forward motion: ←

The passage of time is depicted from left to right for LTR languages, and from right to left for RTL languages.

When a UI is changed from LTR to RTL (or vice-versa), it’s often called mirroring. An RTL layout is the mirror image of an LTR layout, and it affects layout, text, and graphics.

When a UI changes from one direction to another, these items are not mirrored:

  • Numbers
  • Untranslated text (even if it’s part of a phrase)

Text should always be in the correct direction for the language it’s in. For example, any LTR words, such as a URL, will continue to be shown in an LTR format, even if the rest of the UI is in RTL.

Material Design: Text and numbers in correct direction

Do.

Text and numbers should always be in the correct direction for the language.

Material Design: LTR text should not be reversed

Don’t.

LTR text shouldn’t be displayed in reverse order.

When a UI is mirrored, these changes occur:

  • Text fields icons are displayed on the opposite side of a field
  • Navigation buttons are displayed in reverse order
  • Icons that communicate direction, like arrows, are mirrored
  • Text (if it is translated to an RTL language) is aligned to the right

These items are not mirrored:

  • Icons that do not communicate direction, such as a camera
  • Numbers, such as the clock and phone numbers
  • Charts and graphs
Material Design English UI in LTR

An English UI in LTR

Arabic UI in RTL, numbers in LTR, Material Design

An Arabic UI in RTL, with numbers presented in LTR

Text editing menu in Material Design (LTR)

Text editing menu in LTR

RTL text editing menu - Material Design

Text editing menu in RTL

1. Icons related to bidirectionality are mirrored to reflect the start and end of a line of text

LTR screen in Material Design

LTR screen

On an LTR screen, the tab for “Item One” is aligned to the left, and users swipe to the left to see more tabs.

Touch target height: 48dp
Screen edge margin before first tab: 72dp
Tab labels bottom padding: 20dp
Tab labels right and left padding: 12dp

RTL screen in Material Design

RTL screen

On an RTL screen, the tab for “Item One” is aligned to the right, and users swipe to the right to see more tabs.

Touch target height: 48dp
Screen edge margin before first tab: 72dp
Tab labels bottom padding: 20dp
Tab labels right and left padding: 12dp

LTR screen in Material Design

LTR screen

RTL screen in Material Design

RTL screen
Title, icons, and UI elements are displayed flowing from right to left

1. Back button points to the right
2. Text is right-aligned
3. Primary and secondary buttons are mirrored to match reading direction
4. Checkbox appears to the right of text
5. Icons that do not communicate direction are not changed
6. Placement of units may vary across languages
7. Progress bars fill in the same direction as content is read

LTR screen in Material Design

LTR

Navigation, overflow menu, and icons displayed left-to-right

Icon padding from screen edge: 16dp
Title distance from screen edge: 72dp
Padding below title: 20dp
Navigation bar height: 56dp
Overflow menu padding: 16dp

RTL screen in Material Design

RTL

Navigation, overflow menu, and icons switch sides in the RTL layout

Icon padding from screen edge: 16dp
Title distance from screen edge: 72dp
Padding below title: 20dp
Navigation bar height: 56dp
Overflow menu padding: 16dp

LTR screen in Material Design

LTR

Padding and margin around icons and text for LTR

List item height: 72dp
Icon margin from left screen edge: 16dp
List item distance from left screen edge: 72dp

RTL screen in Material Design

RTL

When mirroring the layout, padding and margin around icons and text also switch placement to match RTL layouts.

List item height: 72dp
Icon margin from right screen edge: 16dp
List item distance from right screen edge: 72dp

RTL mirroring guidelines Expand and collapse content An arrow that points down when collapsed and points up when expanded.

When text, layout, and iconography are mirrored to support right-to-left (RTL) UIs, most things that relate to time should be depicted as moving from right to left. For example, in a RTL layout, forward points to the left, and backwards points to the right.

For detailed developer guidance on RTL text, check out:

For detailed developer guidance on RTL icons, check out:

When to mirror

The most important icons for mirroring are back and forward buttons. Back and forward navigation buttons are reversed.

Material Design LTR back button

LTR back button

RTL back button in Material Design

RTL back button

Material Design LTR forward button

LTR forward button

RTL forward button in Material Design

RTL forward button

An icon that shows forward movement should be mirrored.

Material Design: Bicycle facing right symbolizes progress

In a LTR UI, a bicycle facing the right typically communicates a sense of moving forward.

RTL UI with a bicycle pointing left in Material Design

In a RTL UI, a bicycle pointing to the left similarly communicates a sense of moving forward.

A volume icon with a slider at its right side should be mirrored. The slider should progress RTL, and the sound waves should emerge from the right.

LTR volume slider in Material Design

LTR volume with slider

Material Design: Mirrored RTL volume slider with speaker icon

RTL volume with speaker icon and slider mirrored

Sometimes, both the horizontal and circular direction of time are implied in an icon. For example, the redo and undo buttons in Google Docs have both a horizontal direction and a circular direction.

In LTR, these point to the same direction in both circular and horizontal representations of time. In RTL, choose whether to show circular or horizontal direction.

Material Design LTR redo and undo buttons in Google Docs

LTR redo and undo button from the toolbar in Google Docs

Icons that contain representations of text need careful mirroring.

Text is right-aligned in RTL. If there is a paragraph indent at the beginning of a paragraph, an unfinished line at the end of the paragraph, or a ragged right side, the icons need to be mirrored.

Material Design LTR chat icon

LTR chat icon

Material Design RTL chat icon

RTL chat icon

When not to mirror

While the linear representation of time is mirrored in RTL, the circular direction of time is not. Clocks still turn clockwise for RTL languages. A clock icon or a circular refresh or progress indicator with an arrow pointing clockwise should not be mirrored.

Refresh icon in Material Design, clockwise movement

The refresh icon shows time moving forward; the direction is clockwise. The icon is not mirrored.

Counterclockwise history icon in Material Design

The history icon points backwards in time; the direction is counterclockwise. The icon is not mirrored.

Some icons refer to physical objects that are not mirrored in the right-to-left world.

For example, physical keyboards and media players look the same everywhere in the world, so they should not be mirrored.

Material Design keyboard icon

Keyboard icon

Material Design headset icon

Headset icon

Certain icons might seem directional but they actually represent holding an object with one’s right hand.

For example, the search icon typically has its handle at the bottom right side, because the majority of users are right-handed.

The majority of users in RTL-writing countries are also right-handed, so such icons should not be mirrored.

Material Design search icon

Search icon

Material Design local cafe icon

Local cafe icon

Most RTL countries do not mirror slashes. Leave images with slashes as-is for RTL locales.

LTR slash indicating off state in Material Design

Do.

The LTR slash can indicate an off state for both LTR and RTL languages.

Material Design: RTL off state needs no RTL slash

Don’t.

An RTL off state doesn’t need an RTL slash.

The passage of time

In most cases, an action that happens over time should be mirrored.

To show movement from right to left, an icon of a person walking forward should be facing left.

Display the "next page" on the left and the "previous page" on the right.

A progress bar shows 0% on the right, and 100% on the left, and gets filled in from right to left.

Days in a calendar appear from right to left.

Do not mirror media playback buttons and the media progress indicator as they refer to the direction of the media being played, not the direction of time.

Media controls in Material Design are not mirrored

Since media playback buttons and the progress indicator reflect the direction of the media, they are not mirrored.

Material Design media controls for playback are LTR

Do.

Media controls for playback are always LTR.

Material Design: Do not mirror media playback elements

Don’t.

Do not mirror media playback or progress bars. The direction of these elements represents the direction of the tape, not the direction of time.

Localization Expand and collapse content An arrow that points down when collapsed and points up when expanded.

Text in graphics

Graphics that include text usually require localization.

Numbers

Numbers, including icons containing numbers, must be localized for languages that use different numerals. For example, Bengali, Marathi, Nepali, and some Arabic-speaking locales use different forms of numbers.

Material Design icon with a number in LTR

An icon in LTR containing a number

RTL icon in Arabic - Material Design

A RTL icon in Arabic

Mirroring

Sometimes content may need to be mirrored, even if the UI is not mirrored. For example, when a user edits an RTL paragraph inside a LTR document, the toolbar buttons for the RTL text should be in RTL.

Material Design: RTL buttons in LTR UI context

In this RTL paragraph inside a LTR document, the buttons for indenting and lists should be RTL even though the primary UI direction is LTR.

1. Paragraph aligned right
2. Icons flipped
3. Hebrew text direction is RTL