DialogV2 does not close when clicking outside of the dialog
Description
According to the docs in https://primer.style/react/drafts/Dialog, the dialog is modal so it should close when clicking outside of the dialog. However, clicking outside the dialog does not close it
Steps to reproduce
- Go to https://primer.style/react/drafts/Dialog
- Scroll down and click on the "Open" button
- The dialog will open
- Click outside of the dialog
- Nothing happens!
Version
v35.28.0
Browser
Chrome
@lesliecdubs, I'll resolve it, please, assign it to me.
Thanks for offering to resolve, @Youssef11296! This task requires some deeper consideration from Primer maintainers to ensure accessibility requirements are properly handled, so we wouldn't recommend this as an ideal contribution opportunity. Feel free to browse other open issues and let us know if there's any you'd be interested in working on instead.
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days.