Skip to content
Bugwise
Menu
UI Components

Menu / Context Menu

Overflow (⋯) menus, context menus and menu buttons that hold actions. Learn how a menu should open, position itself, handle focus and the keyboard, show disabled and dangerous items, and act on the right item, then hunt six bugs in a file manager.

35–50 min Navigation Web · iOS · Android Also called: Overflow menu, More menu, Kebab menu, Meatballs menu, Context menu, Action menu, Popup menu, Pull-down menu

You open the ⋯ next to Team photo.jpg, tap Rename, and the dialog says Rename “Q3 report.pdf”. You try the last file in the list: the menu opens below the screen’s edge and Delete is cut off. You press Escape: nothing. You click somewhere else: the menu stays. On a keyboard, the menu opens, but the arrow keys scroll the page.

A menu is a small floating list of actions. It’s on nearly every screen: next to files, messages, orders, comments, table rows. Because it’s small and everywhere, teams copy it from screen to screen, bugs included. And because it holds actions like Delete, a menu that acts on the wrong item is never a cosmetic bug.

Part Not started

What is it?

A menu is a temporary list of actions that opens from a trigger and closes after you choose one. You’ll meet several kinds:

KindHow it opensTypical use
overflow menuOverflow menuA menu behind a ⋯ or ⋮ button that holds secondary actions for an item or a screen.Open in glossary →A ⋯ or ⋮ buttonLess-used actions for an item or a screen: Rename, Duplicate, Report
context menuContext menuA menu of actions for whatever the user right-clicked or long-pressed.Open in glossary →Right-click on desktop, long-press on touch screensActions for what you pointed at: a file, a message, a link
Menu buttonA labeled button with an arrow: Export ▾A small set of related actions: Export as PDF, CSV, Excel
Split buttonA main action plus an arrow next to it: Save | ▾One main action plus alternatives: Save as, Save a copy
Action sheetA tap, on iPhoneA few actions from the bottom of the screen, plus Cancel. See Bottom Sheet

Everyone calls them something different. ⋮ is the kebab, ⋯ the meatballs, and ☰ the hamburger, which opens a navigation drawer, not an action menu. In bug reports, say which button you tapped and what it is next to: “the ⋯ button on the file row”.

They look alike, but they do different things:

  • A dropdown (select) chooses a value that stays visible: Country: Serbia. See Dropdown / Select.
  • A menu runs an action and closes: Rename, Download. Nothing stays selected (except checkable items like Starred).

The difference matters for testing: a dropdown is tested like a form field (value saved, validated, submitted); a menu is tested like a set of buttons (does each action happen, to the right item?).

Anatomy

An overflow menu in a file manager

  1. 1

    Trigger

    The button that opens the menu, often ⋯ or ⋮. Needs a name like “Actions for Q3 report.pdf”, not just “More”.

  2. 2

    Menu surface

    A floating panel next to the trigger. It must stay on screen, flipping up or left near the edges.

  3. 3

    Menu item

    One action, ideally a verb: Rename, Download. An icon helps scanning but never replaces the label.

  4. 4

    Keyboard shortcut

    On desktop, a hint like ⌘D. It must match what the shortcut really does.

  5. 5

    Checked item

    An on/off option like Starred. The tick must match the real state.

  6. 6

    Submenu

    An arrow means more items. Hard on touch screens; keep to one level.

  7. 7

    Separator

    Groups related items and keeps dangerous ones apart.

  8. 8

    Destructive item

    Delete goes last, in red, after a separator, and asks for confirmation or offers undo.

Check this part

  1. What is the main difference between a menu and a dropdown (select)?

  2. How does a context menu usually open?

A menu is a temporary list of actions opened from a trigger, such as an overflow (⋯) button, a right-click or long-press, or a labeled menu button; it runs actions, unlike a dropdown, which picks a value.

Part Not started

When to use it

Menus save space, but everything in them is hidden until the user opens them. That’s fine for secondary actions and bad for the main one.

Main action visible, the rest in ⋯

A file row shows Share as a button, and Rename, Move, Download and Delete in the ⋯ menu.

Everything hidden

An order page with no buttons at all: even Track order and Contact courier are in a ⋯ menu.

Short, grouped, Delete last

Five items, related ones together, a separator, then Delete in red at the bottom.

Long and mixed

Fourteen items in random order, with Delete between Rename and Share, one slip away from the most used action.

Context menu as a shortcut

Right-clicking a file shows the same actions as its ⋯ button. Both ways work.

Context menu as the only way

Delete exists only in the long-press menu. Users who don’t know about long-press, and many keyboard and screen readerScreen readerSoftware that reads the screen aloud for blind and low-vision users, like VoiceOver or TalkBack.Open in glossary → users, can’t delete anything.

Other good habits: label items with verbs (“Download”, not “PDF”), keep one level (submenus are hard on touch screens), and keep the same order in every menu of the same kind, so people build muscle memory.

Check this part

  1. Why is it a problem when an action exists only in a long-press context menu?

  2. Where does Delete belong in a menu?

Use menus for secondary actions; keep the main action visible, keep menus short and grouped with Delete last, and never hide an action only in a context menu.

Part Not started

How a good menu behaves

Opening and position

  • It opens next to its trigger, and stays fully on screen: near the bottom edge it opens upward, near the right edge it opens to the left. It must never be cut off by the screen, a scroll area or a card around it.
  • Only one menu is open at a time. Opening another closes the first.
  • The trigger shows that the menu is open (pressed or highlighted state).

Acting on the right item

The menu acts on the item it was opened for, every time, also after scrolling, sorting, filtering or new items arriving. If the menu shows the item’s name (“Actions for Team photo.jpg”), the dialogs and messages afterwards use the same name.

Closing

A menu closes when the user:

  • chooses an item (except checkable ones, which may stay open),
  • clicks or taps outside it,
  • presses Esc, or Back on Android,
  • scrolls the page or resizes the window (or the menu moves with its trigger).

Focus and keyboard

KeyWhat happens
Enter, Space or ↓ on the triggerOpens the menu, focus moves to the first item
↑ on the triggerOpens it with focus on the last item
↓ ↑Move between items, usually wrapping around
Home EndFirst and last item
A letterJumps to the next item starting with it (typeahead)
EnterRuns the focused item
EscCloses the menu and puts focus back on the trigger
TabCloses the menu and moves on

Disabled and dangerous items

  • Disabled items look disabled and can’t be run. Better still, they explain why (“View only”) or they’re hidden if they can never apply. An item that looks enabled and does nothing is the worst option.
  • Destructive items ask for confirmation (“Delete Team photo.jpg?”) or offer undo (“Deleted. Undo”).

Try it

🧪 Menu lab

A menu built the right way. Try it with the mouse, then with only the keyboard. Open the menu of the last file, and of Contract.pdf, which you can only view.

My files

  • Q3 report.pdf
  • Team photo.jpg
  • Contract.pdfView only
  • Budget 2027.xlsx
Tab to a ⋯ button, or click one.

Keyboard

  • Enter, Space or ↓ opens, focus on the first item
  • ↑ ↓ move, Home End jump
  • Typing a letter jumps to that item
  • Esc closes and returns focus to ⋯

Check this part

  1. The menu was opened by keyboard and the user presses Escape. Where should focus go?

  2. The ⋯ button is near the bottom of the screen. Where should the menu open?

A menu opens next to its trigger and stays on screen, acts on the item it was opened for, closes on choice, outside click and Escape, moves focus in and back, and supports arrow keys and typing.

Part Not started

Common bugs

#BugWhat you seeTypical severitySeverityHow much damage a bug does to the product or the user.Open in glossary →
1Wrong itemThe action applies to another row: the first one, the last one opened, or a row that moved after sortingCritical when it deletes or sends
2Cut offThe menu opens below the screen edge or inside a card that clips it; the last items can’t be reachedHigh
3Won’t closeOutside clicks, Escape or Back do nothing; two menus open at onceMedium
4Focus lostOpening the menu leaves focus on the trigger; closing it throws focus to the top of the pageHigh (for keyboard users)
5Dead itemsItems that look enabled do nothing, or disabled items still runMedium
6No safety netDelete runs at once, with no confirmation and no undoHigh
7Nameless triggerThe ⋯ button is announced as “More” or just “button”, twenty times on one pageHigh (for affected users)
8Inconsistent menusThe context menu and the ⋯ menu offer different actions or names for the same thingLow–Medium

Bug hunt

Below is a shared drive in a web app. Use the ⋯ buttons on different files, right-click a file, try the last file in the list, the view-only contract, and the keyboard. Six bugs are hiding here.

🐞 Bug hunt: Shared drive menus

This demo has 6 hidden bugs. Explore it like a tester, then check your findings.

Found0/6

Shared drive · 5 files

  • Q3 report.pdf
  • Team photo.jpg
  • Contract.pdfView only
  • Holiday plan.docx
  • Budget 2027.xlsx

Use the ⋯ buttons, or right-click a file.

Tip: right-click works too (long-press on touch screens shows nothing here).
  1. 1

    Hint: Open ⋯ on Team photo.jpg and choose Rename. Then right-click Holiday plan.docx, and use ⋯ on another file.

  2. 2

    Hint: Open the ⋯ menu of Budget 2027.xlsx, the last file.

  3. 3

    Hint: Choose Delete in any menu.

  4. 4

    Hint: Open a menu, then press Escape or click somewhere else in the list.

  5. 5

    Hint: Open the menu of Contract.pdf (View only) and choose Rename.

  6. 6

    Hint: Tab to a ⋯ button, press Enter, then press the Down arrow.

Check this part

  1. Which menu bug is the most dangerous?

  2. How do you find cut-off menus?

Menus that act on the wrong item, get cut off, don't close, lose focus, show dead items or delete without confirmation, and a file manager to find six of them in.

Part Not started

How to test it

Start without any tools. Find a screen that uses this component and use it the way a real user would: slowly, then fast, then in ways nobody planned for. Tick off the checklist as you go. Most of it needs only your eyes and your fingers.

Then try the example test cases. Some of them need a little setup:

  • A keyboard: on the web, put the mouse away and use Tab, Enter, Space, Esc and the arrow keys.

New to this? Do the checklist first and skip any test case whose setup you don’t know yet.

Checklist

Menu test checklist

0 of 13 checked

Example test cases

TC-MNU-001Each row's menu acts on its own row

Preconditions

  • A list with at least 5 files

Steps

  1. Open ⋯ on the 3rd file and choose Rename
  2. Cancel, then open ⋯ on the 5th file and choose Rename
  3. Sort the list by name and repeat on the file now in 3rd place

Expected result

Each rename dialog shows the name of the file whose ⋯ was opened.

TC-MNU-002Menu stays on screen near the edges

Steps

  1. Scroll so a file row is at the bottom of the window
  2. Open its ⋯ menu
  3. Resize the window narrow and open a menu at the right edge

Expected result

The menu opens upward or to the left; every item, including Delete, is visible and clickable.

TC-MNU-003Every way to close the menu

Steps

  1. Open a menu and click outside it
  2. Open it and press Escape
  3. On Android, open it and press Back
  4. Open one menu, then another

Expected result

Each time the menu closes; Back closes the menu without leaving the screen; only one menu is ever open.

TC-MNU-004Keyboard-only use

Steps

  1. Tab to a ⋯ button and press Enter
  2. Press Down twice, then Enter
  3. Open it again and press Escape

Expected result

Focus moves into the menu on open, the third item runs, and after Escape focus is back on the same ⋯ button.

TC-MNU-005Disabled items on a view-only file

Preconditions

  • A file shared with you as view only

Steps

  1. Open its menu
  2. Try Rename and Delete

Expected result

Rename and Delete are disabled (or hidden) and nothing runs; a reason such as "View only" is shown.

TC-MNU-006Delete asks for confirmation or offers undo

Steps

  1. Open the menu of a file and choose Delete

Expected result

A confirmation names the file, or the file is removed with an Undo message that restores it.

TC-MNU-007Context menu matches the ⋯ menu

Steps

  1. Right-click a file (long-press on touch)
  2. Compare with its ⋯ menu

Expected result

The same actions with the same names, in the same order.

Tip: click a test case to expand it.

Check this part

  1. Why sort or filter the list before testing a row menu again?

  2. On Android, the user presses Back while a menu is open. What should happen?

A checklist and example test cases: every item on the right target, positions near edges, every way to close, keyboard and focus, disabled and destructive items, and consistency between menus.

Part Not started

Accessibility

Mobile vs web

  • Pull-down menus open from buttons (often ⋯ in the toolbar) and context menus open with a long-press, often with a preview of the item above the menu.
    Dev note
    UIMenu on a UIButton or UIBarButtonItem; SwiftUI Menu and .contextMenu. Destructive items use the destructive attribute or role and show in red.
  • Long-press timing and haptic feedback: the menu should appear once, without also starting a drag or selection.
  • Action sheets (confirmation dialogs) are used for a few choices from the bottom, often to confirm Delete. See Bottom Sheet.
  • Check VoiceOver: long-press actions are reachable through the Actions rotor or a visible button.
  • The ⋮ overflow menu sits at the end of the top app bar and on list items; popup menus open next to their anchor.
    Dev note
    PopupMenu / Compose DropdownMenu; the toolbar overflow comes from the options menu. Long-press on a list item often starts selection mode with a contextual action bar instead of a menu.
  • Back closes the menu first, without leaving the screen.
  • Rotate with a menu open: it should close or reposition, not float in the wrong place.
  • TalkBack: the ⋮ button needs a name, and long-press actions must appear as custom actions.
  • Right-click menus replace the browser’s own menu. Only do that where the app’s menu is clearly more useful (files, editors), and never on normal links and text, where users expect Copy and Open in new tab.
  • Keyboard users can open context menus with Shift+F10 or the context menu key. Check that the app’s menu supports them too.
  • Test inside scroll areas, cards and tables: menus are often clipped by containers that hide overflow, or appear behind sticky headers.
  • Touch laptops and tablets have no right-click: a long-press or visible ⋯ is needed.
  • Zoom to 200% and narrow windows: menus must stay on screen and readable.

Check this part

  1. A list has twenty ⋯ buttons all announced as 'More, button'. What's wrong?

  2. Should a web app replace the browser's right-click menu everywhere?

Named triggers with announced state, focus that moves in and back, keyboard support and visible alternatives to hidden menus, plus how menus work on iOS, Android and the web.

Key takeaways

  • A menu is a temporary list of actions: overflow (⋯), context (right-click, long-press), menu buttons and split buttons. A dropdown chooses a value; a menu runs an action.
  • Keep the main action visible, menus short and grouped, Delete last with confirmation or undo, and never hide an action only in a context menu.
  • Every menu must act on the item it was opened for, also after scrolling, sorting and filtering.
  • Menus stay on screen near edges and inside cards, and close on choice, outside click, Escape and Back.
  • Keyboard and focus: focus moves into the menu and back to the trigger; arrows, Home, End and letters work.
  • Triggers need specific names and an announced expanded state; disabled items look disabled and say why.

Finished this page?Nice work, this page is complete!

Mark it as done to track your progress. It's saved in this browser, no account needed.

Its cards are now in your Bites review ⚡
Esc

Type to search the whole site.