• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coreui / coreui-pro / 34004417765
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v6-dev
DEFAULT BRANCH: main
Ran 06 Sep 2026 01:39AM UTC
Jobs 1
Files 71
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Sep 2026 01:38AM UTC coverage: 93.528% (+0.1%) from 93.433%
34004417765

push

github

web-flow
feat(ContextMenu): right-click menu built on the Menu engine (#1157)

* refactor(Menu): resolve key events through the open-instance registry

A keydown inside an open menu now finds its instance in the open-instance
registry instead of searching for a toggle next to the menu element. That
lookup failed once `container` moved the menu to the body (and could pick
an unrelated toggle when several menus share a parent), leaving arrow keys
and Escape dead in a moved menu; it also lets a subclass with its own
trigger reuse the same document-level handlers. Escape returns focus to the
instance's own element.

`clearMenus` now ignores the right button on click events only, so a
`contextmenu` event can be routed through it. The reference-element
resolution shared by `_createFloating` and `_updateFloatingPosition` moves
into one `_getReferenceElement` method.

* feat(ContextMenu): right-click menu built on the Menu engine

Adds the PRO `ContextMenu` component: a right-click, a long-press that
dispatches `contextmenu`, or Shift+F10 / the Menu key inside an element
with `data-coreui-toggle="context-menu"` opens the neighbouring `.menu` at
the pointer and suppresses the browser menu. The menu is a regular `.menu`,
so items, submenus, keyboard navigation and dismissal come from Menu.

- Positions with `strategy: 'fixed'` against a virtual reference at the
  pointer (`reference: 'pointer'`); keyboard invocation and `show()` without
  a point anchor to the trigger. Floating UI flips and shifts at the
  viewport edges.
- Focus moves into the menu on open (the menu gets `tabindex="-1"`) and
  returns to the trigger on close. The trigger gets no `aria-expanded` or
  `.show`, since it is an area rather than a button.
- A right-click inside the open menu keeps it; one elsewhere closes context
  menus (respecting `autoClose`) while click-opened menus stay, and a
  context menu closes every open menu when it opens.
- `menu` accepts a selector (`data-coreui-menu="#id"`) for... (continued)

4979 of 5585 branches covered (89.15%)

Branch coverage included in aggregate %.

142 of 144 new or added lines in 2 files covered. (98.61%)

9587 of 9989 relevant lines covered (95.98%)

391.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.48
js/src/context-menu.ts
Jobs
ID Job ID Ran Files Coverage
1 34004417765.1 06 Sep 2026 01:39AM UTC 71
93.53
GitHub Action Run
Source Files on build 34004417765
  • Tree
  • List 71
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34004417765
  • 0189c834 on github
  • Prev Build on v6-dev (#34002711665)
  • Next Build on v6-dev (#34034261057)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc