-
Notifications
You must be signed in to change notification settings - Fork 320
Update Drawers to do a proper focus trap #1290
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
base: main
Are you sure you want to change the base?
Conversation
Improves user reported issues that clicking outside the modal would click elements unexpectedly, also improves accessibility (keyboard focus trap & esc to exit) Fixes HDX-2642
🦋 Changeset detectedLatest commit: 71a061d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
E2E Test Results✅ All tests passed • 26 passed • 3 skipped • 219s
|
PR Review: Update Drawers to do a proper focus trapCritical Issues✅ No critical issues found. Code Quality NotesGood changes:
Minor observations:
SummaryThis is a clean refactoring that improves accessibility and user experience. The migration to Mantine Drawer is well-executed and aligns with the project architectural guidelines. No blocking issues. |
| "react-hotkeys-hook": "^4.3.7", | ||
| "react-json-tree": "^0.17.0", | ||
| "react-markdown": "^8.0.4", | ||
| "react-modern-drawer": "^1.2.0", |
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.
🤠
| position="top-start" | ||
| offset={5} | ||
| opened={opened} | ||
| zIndex={1} |
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.
This is great because I can see the popovers now, but I'm also seeing that the add / exclude filter buttons are not having an effect when in the side drawer other than closing the side drawer:
Screen.Recording.2025-10-25.at.11.36.27.AM.mov
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.
Thank you for testing it! I tested so many things to ensure the zindex worked, but didn't click it 😆 . The issue was the tooltips were rendering in a portal and now with the accessibility improvements, the drawer was auto-closing due to a click outside the modal. I fixed this by ensuring the tooltips render in the same container as the table, thus avoiding the portal click outside logic
Improves user reported issues that clicking outside the modal would click elements unexpectedly, also improves accessibility (keyboard focus trap & esc to exit)
Fixes HDX-2642