-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(#16882) Menu's target prop fix #17145
fix(#16882) Menu's target prop fix #17145
Conversation
I have read the DCO document and I hereby sign the DCO. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for taking this on! I don't think we should rename the target
prop if possible. It makes the internal logic simpler, we can avoid the codemod, and consumers don't have to change any existing usages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Hi @alisonjoseph & @emyarod , Can you please review the PR ? I've got one approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
Hi everyone, This PR has label status: failing CI. Can you help me know does this needs some code fixes from my end or there's some CI issue ? |
@NabeelAyubee looks like the build failed. Do you see the same locally when running |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17145 +/- ##
=======================================
Coverage 79.09% 79.09%
=======================================
Files 407 407
Lines 14029 14031 +2
Branches 4338 4340 +2
=======================================
+ Hits 11096 11098 +2
Misses 2768 2768
Partials 165 165 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the assist @2nikhiltom! 🏆
00ecc50
Closes #16882
Renamed the target prop to menuTarget for the Menu component to improve clarity.
Added the menuTarget prop to MenuButton and OverflowMenu components, allowing consumers to specify the DOM element into which the menu is portaled.
Changelog
Changed
Testing / Reviewing
Testing / Reviewing