-
Notifications
You must be signed in to change notification settings - Fork 343
fix(preview): annotation delete modal z-index #4445
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(preview): annotation delete modal z-index #4445
Conversation
Fixed z-index issue where the annotation delete confirmation modal was hidden behind other elements. The className with z-index styling was applied to the inner div but not the TetherComponent wrapper, causing the modal to be positioned incorrectly. Moved the className to tetherProps to match the pattern used in Comment.js and Task.js components. Added test coverage to prevent regression. Co-authored-by: Cursor <cursoragent@cursor.com>
WalkthroughThis pull request relocates a CSS class ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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. Comment |
Merge Queue StatusRule:
This pull request spent 7 seconds in the queue, with no time running CI. Required conditions to merge
|
Summary
Fixed z-index issue where the annotation delete confirmation modal was hidden behind other elements in the content sidebar.
Problem
The delete confirmation modal was being rendered but not visible when users attempted to delete an annotation. The modal appeared behind other content due to incorrect z-index application.
Root Cause
The
bcs-AnnotationActivity-deleteConfirmationModalclass withz-index: $overlay-z-indexwas applied to the inner div insiderenderElement, but the outer TetherComponent wrapper div did not have the z-index applied, causing incorrect layering.Solution
Moved the className to the
tetherPropsobject so it applies to the TetherComponent wrapper element. This matches the established pattern used inComment.jsandTask.jscomponents.Changes
classNametotetherPropsobjectTest Plan
Files Changed
src/elements/content-sidebar/activity-feed/annotations/AnnotationActivity.jssrc/elements/content-sidebar/activity-feed/annotations/__tests__/AnnotationActivity.test.jsSummary by CodeRabbit
Bug Fixes
Tests