Skip to content

feat(ContextMenu): add open and pressOpenDelay props - #7148

Merged
benjamincanac merged 2 commits into
v4from
feat/context-menu-open
Oct 7, 2026
Merged

benjamincanac merged 2 commits into
v4from
feat/context-menu-open

Conversation

@benjamincanac

@benjamincanac benjamincanac commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

🔗 Linked issue

Replaces #7136, which GitHub marked as merged when the stack was reordered.

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Reka UI 2.11 adds two props to ContextMenuRoot:

Both already reach ContextMenuRoot on v4 as fallthrough attributes, but they are not part of ContextMenuProps. This declares and forwards them, so they are typed, listed in the props table and can be set through <UTheme :props>.

The docs get a "Control open state" section. When opened programmatically, the menu is anchored to the trigger instead of the cursor.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ui Ready Ready Preview Oct 7, 2026 3:24pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
ui-repl Ignored Ignored Preview Oct 7, 2026 3:24pm UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@7148

commit: 457d51a

@codspeed

codspeed Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/context-menu-open (457d51a) with v4 (378873a)

Open in CodSpeed

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Client output of the apps in test/bundle, compared to the base branch.

Fixture JS (gzip) CSS (gzip)
nuxt 115.6 kB 27.4 kB
nuxt-detection 115.6 kB 10.5 kB
nuxt-full 836.8 kB (+31 B, +0.0%) 27.6 kB
vue 92.4 kB 25.5 kB
vue-detection 92.4 kB 8.7 kB
Raw sizes
Fixture JS CSS
nuxt 333.5 kB 203.5 kB
nuxt-detection 333.5 kB 61.3 kB
nuxt-full 2645.6 kB (+97 B, +0.0%) 203.7 kB
vue 278.0 kB 201.5 kB
vue-detection 278.0 kB 57.8 kB

@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7f2b611e-77f0-4121-9215-d5c77df7190b
📥 Commits

Reviewing files that changed from the base of the PR and between d39db8a and 457d51a.

📒 Files selected for processing (2)
  • docs/content/docs/2.components/context-menu.md
  • test/components/ContextMenu.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

ContextMenuProps now inherits the open and pressOpenDelay props, and ContextMenu forwards them to ContextMenuRoot. A test checks that content renders when open is true. The documentation and example show controlling open state with v-model:open and toggling it with the O key.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 457d5

The controlled ContextMenu API and its documented trigger anchoring match the locked dependency; no actionable merge risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the primary change: adding the open and pressOpenDelay props to ContextMenu.
Description check ✅ Passed The description explains the two props, their purpose, forwarding behavior, tests, and documentation updates. It is directly related to the changeset.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat/toast-action-close-on-click to v4 October 7, 2026 14:51
@benjamincanac
benjamincanac merged commit 73c489b into v4 Oct 7, 2026
37 checks passed
@benjamincanac
benjamincanac deleted the feat/context-menu-open branch October 7, 2026 15:31

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – ui — 457d51a4 Deployed Oct 7, 2026 by vercel[bot]
Preview – ui-repl — d39db8ab Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant