Skip to content
العربيةLet’s talk

Practical guide

How do you test a bilingual mobile menu with a keyboard?

Try one booking link in Arabic and English. Check where keyboard focus goes as the mobile menu opens, expands and closes, then record a failure your developer can repeat.

Lava Solutions · · 3 minute read

Hand-drawn website layouts on paper, with blue, purple and green watercolor sections.
Illustrative stock photo. Photo: Hal Gatewood / Unsplash.

Before accepting a bilingual website, give someone a destination buried one level inside its mobile menu. Ask them to reach it using only a keyboard, first in Arabic and then in English. Watch where the keyboard focus goes when they open the menu, expand a section and close it again. The focus indicator is the visible mark that tells them which control will respond to the next keypress.

Choose one destination in both languages

Fictional example. A maintenance company has a “Services” button and a “Book a visit” link beneath it. In Arabic the labels are «الخدمات» and «احجز زيارة». Agree on the destination page in each language before testing. Reduce the desktop browser width until the mobile menu appears, or connect an external keyboard to a phone. Record the browser, device and viewport width. Confirm that the browser’s keyboard navigation can reach ordinary links before testing the menu.

  1. Open. Start with the menu closed. Put the mouse aside. Press Tab until you reach the menu button. Look for a visible focus indicator. If a hidden link receives focus along the way, write down the last visible stop. Activate the button with Enter. On a second pass, try Space on that button.
  2. Find the link. Move to “Services”, activate it and press Tab through the revealed links until you reach “Book a visit”. Try Shift+Tab once and Tab again. You should be able to tell where you went in each direction. Press Enter on the link and check the destination page and its language.
  3. Leave without choosing. Return to the start page, reopen the menu and expand “Services”. This time, leave without following a link. Check where focus goes and press Tab once more. After the panel closes, its hidden links should be out of the keyboard sequence.

What should happen when you close the menu?

Ask the designer which of two behaviours the header uses. In a simple expanding navigation section, the page remains available. The button can collapse its list. In W3C’s disclosure navigation example, Escape inside an expanded section closes it and returns focus to that section’s button. Arrow keys are optional in this example. You can test ordinary links with Tab in either language.

A menu that opens as a modal dialog behaves differently. Focus moves inside on opening. As long as it is open, Tab and Shift+Tab cycle within the dialog, and the page behind it cannot be operated. Test Escape and the visible close control separately. After dismissing it without navigating, expect focus to return to the menu button in this workflow. If focus disappears behind the panel or you cannot close it with the keyboard, capture the exact step.

Check the Arabic route on its own

Repeat the route from the Arabic start page. Watch the indicator as the right-to-left layout places controls on the other side of the screen. Judge the sequence by whether each next stop makes sense and the booking link remains reachable. A translated label may wrap onto two lines, so check that its indicator is still visible. On a real phone, repeat opening the menu, expanding the section, following the link and closing the panel using touch as a separate check.

A useful handover note gives the developer the starting page, language, viewport width, exact keys, last visible label and expected next stop. In the fictional booking test, a reviewer might write, “Arabic, 390 px. I opened الخدمات and pressed Tab. The booking link was visible, but focus moved to the footer. I expected to reach احجز زيارة before leaving the header.” Retest that route after the fix, then repeat it in English. Record the result for these routes and devices. A site-wide accessibility assessment covers more.

For the rest of the handover, use the bilingual website launch checklist. To review a menu with Lava’s website team, send both page links and the keyboard sequence that stopped working.

Sources & further reading

A useful next step

Bring one real workflow.

Share the process you want to improve, the systems involved and the decision you need to make.

Talk to Lava ↗