- Docs
- Components
- Overlays
Context menu
A menu at the pointer: right-click, a long press, or Shift+F10. Menu's items, on any area.
- Import
- @qeetrix/react
- Status
- StableSince 0.1.0
- Renders
<div role="menu">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| ShiftShift F10 | With focus in the area: opens it at the focused element. |
| Menu | The context-menu key: the same. |
| ↑↓EnterEscape | As Menu's. |
02
Behaviour
- Roles
- Menu's: role="menu" of menuitems.
- Opening
- Right-click or a long press, at the pointer; by key, at the focused element.
- Reachable
- Only by key if the area takes focus: give it tabIndex={0}, or put it around content that does.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Focus: where it lands as it opens, and where it returns as it closes
- Forced colours, reduced motion and right to left