Skip to content
All writing

Action menus in a bilingual interface

What to check when a shared action menu needs to work in both Arabic and English.

At Naseh, one part of the design-system work was standardizing 28 action menus across Arabic and English interfaces. A row menu in a document list is a good example of why direction belongs in the shared component. Every caller needs the same rules for alignment, keyboard focus, and dismissal.

Align to the reading direction

An action trigger can sit at the end of a row in both languages. In English that usually means the right side. In Arabic it means the left. CSS logical properties such as margin-inline-start and padding-inline express those relationships directly. Set the language and dir for the interface, and let the browser resolve the corresponding edges.

If your menu renders through a portal, check the menu content itself. A portal mounted outside a locally scoped dir="rtl" container will inherit direction from its own ancestors.

Test the whole interaction

Open the menu with the keyboard and confirm where focus lands. Move through the actions, dismiss the menu with Escape, and check that focus returns to the trigger. Repeat in both languages with a long label and a row near the viewport edge. Those cases catch placement and focus bugs that a screenshot of the open menu can miss.

For the CSS and keyboard details, see MDN’s guide to logical properties and the WAI menu button pattern.