-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
[Menu, Select, Dialog] Use internal backdrop for pointer modality #1161
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy preview |
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.
The direction makes sense to me. Just to make sure, will we still have the *Dialog exported components so people can style their backdrops?
The |
Makes total sense, this is what I wanted to confirm 👌 |
d4ceac9
to
f832acd
Compare
Closes #1119
Also looks to close #1107 demo
pointer-events: none
on "outside" elements causes perf issues in Firefox and Safari, degrading increasingly worse as the page size increases.pointer-events: none
with anauto
"hole" on the popup isn't feasible due to interop issues with other popups (extensions, other libraries or custom elements) as they will be unusable since they don't know to specifyauto
.The main issue with an internal backdrop is
z-index
layering. With Set up portals in our docs, this issue is essentially gone as the portaled backdrop will always cover the isolated root content.