Skip to content

feat: add ContextMenu animations API and global close-on-click-outside configuration mechanism#3067

Merged
MartinCupela merged 2 commits intomasterfrom
feat/context-menu-animations
Mar 26, 2026
Merged

feat: add ContextMenu animations API and global close-on-click-outside configuration mechanism#3067
MartinCupela merged 2 commits intomasterfrom
feat/context-menu-animations

Conversation

@MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented Mar 26, 2026

🎯 Goal

Adds default rolling animations to context menus.
Adds ContextMenu, ContextMenuContent keys to ComponentContext for customization of context menu system
Allows to configuration of animation behavior
Allows configuration of close behavior when clicked outside the dialog overlay. At the moment changed to close by default.

Closes REACT-929: feat: add ContextMenu animations API and global close-on-click-outside configuration mechanism

🎨 UI Changes

qnq4.webm

@github-actions
Copy link

github-actions bot commented Mar 26, 2026

Size Change: +4.54 kB (+0.59%)

Total Size: 774 kB

Filename Size Change
./dist/cjs/index.js 238 kB +1.9 kB (+0.81%)
./dist/css/index.css 47.6 kB +714 B (+1.52%)
./dist/es/index.mjs 236 kB +1.93 kB (+0.82%)
ℹ️ View Unchanged
Filename Size
./dist/cjs/audioProcessing.js 1.32 kB
./dist/cjs/emojis.js 2.96 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/cjs/WithAudioPlayback.js 89.1 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB
./dist/es/audioProcessing.mjs 1.31 kB
./dist/es/emojis.mjs 2.48 kB
./dist/es/mp3-encoder.mjs 756 B
./dist/es/WithAudioPlayback.mjs 88.8 kB

compressed-size-action

@codecov
Copy link

codecov bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 76.59574% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.01%. Comparing base (fdf0e15) to head (43a854f).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/components/Dialog/components/ContextMenu.tsx 58.46% 27 Missing ⚠️
src/components/Dialog/service/DialogAnchor.tsx 84.61% 4 Missing ⚠️
src/components/Dialog/service/DialogPortal.tsx 96.15% 1 Missing ⚠️
src/context/DialogManagerContext.tsx 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3067      +/-   ##
==========================================
+ Coverage   78.93%   79.01%   +0.07%     
==========================================
  Files         426      426              
  Lines       12069    12165      +96     
  Branches     3854     3892      +38     
==========================================
+ Hits         9527     9612      +85     
- Misses       2542     2553      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MartinCupela MartinCupela merged commit 630e5c7 into master Mar 26, 2026
8 checks passed
@MartinCupela MartinCupela deleted the feat/context-menu-animations branch March 26, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants