# Bug DREAM-1021 - Dropdown menus on work package pages cannot be operated with arrow keys

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-1021

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages, Accessibility, Frontend components and Primer design system |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | Yes |
| Accessibility | Yes |
| Pull preview |  |
| List | a11y report 2026 |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer | Julia Racsko |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Open the work packages page using only the keyboard.

2.  Tab to the **More** (`⋮`) button in the toolbar and press **Enter**.

3.  Press **Down**, **Up**, **Home**, **End**.

4.  Press **Tab** repeatedly.

5.  Repeat with the other dropdown menus listed under "Affected menus".

### What is the buggy behavior?

  - Arrow keys, **Home** and **End** do nothing.

  - Every menu item is its own tab stop. Leaving the **More** menu on the work packages page takes up to 12 presses of **Tab**.

  - The menus are announced as menus (`role="menu"`, `role="menuitem"`), so screen reader users are told that arrow keys will work.

### What is the expected behavior?

The menus follow the WAI-ARIA menu pattern, as the work package table's row and column menus and all other action menus already do:

  - **Down** / **Up** move between items, **Home** / **End** jump to the first and last item.

  - The menu is a single tab stop (roving tabindex). **Tab** leaves and closes it.

  - **Escape** closes the menu and returns focus to its button.

### Why this matters

A menu role is a promise about keyboard behavior. Screen readers announce "menu" and users switch to arrow keys; here nothing happens, so the menu appears broken (WCAG 4.1.2 Name, Role, Value). The menu is also inserted at the end of the page rather than next to its button, so **Tab** walks through every item and then lands on an unrelated element at the end of the page, with the menu still open, instead of moving on to the next toolbar control (WCAG 2.4.3 Focus Order). Two menus on the same page, the table row menu and the toolbar **More** menu, currently behave differently.

### Affected menus

Work packages page toolbar:

  - **Create**

  - **More** (`⋮`)

  - Collapse / expand groups

Work package details view and full view:

  - **Create**

  - Reminder

  - **More** (`⋮`)

  - Status

New work package form:

  - **More** (`⋮`)

Work package cards (card view of the work packages page) and calendar / team planner entries:

  - Context menu (right-click, **Shift+F10**)

### Related problems

  - After an item is chosen (for example **Copy link to clipboard**), focus is not returned to the button; it falls back to the page.
  - The buttons do not announce that they open a menu or whether it is open (no `aria-haspopup`, no `aria-expanded`).
  - An open menu does not follow its button when the browser window is resized: it stays at the position computed when it was opened. Primer action menus re-position on resize.

Arrow keys, **Tab**, focus after choosing an item and the missing button state were checked in Chrome on QA Edge on 2026-11-12.

### Technical notes

  - Fix in review: <https://github.com/opf/openproject/pull/26948> ports these menus to the Primer `ActionMenu`.

These menus are rendered by the legacy Angular dropdown (`op-context-menu`), which handles **Escape** only. The work package table's row and column menus were moved to the Primer `ActionMenu` in <mention class="mention" data-id="DREAM-982" data-type="work_package" data-text="#DREAM-982">#DREAM-982</mention> and already behave correctly. The same defect in menus outside the work package pages is tracked in <mention class="mention" data-id="DREAM-1022" data-type="work_package" data-text="#DREAM-1022">#DREAM-1022</mention>.

### Environment information

**OpenProject version**

*18.0*
