[Question] Support for :top-layer content, e.g. <dialog> and [popup]
See original GitHub issueContent in a <dialog>
that is opened with showModal()
or showPopUp()
via the popup
attribute will not actually have “offsetParents” or “clippingAncestors”. How do you think it is best for the library to support positioning that content?
Particularly, if a reference element and a floating element are both bound in an element with a matrix transform, a la https://codesandbox.io/s/floating-ui-dom-template-forked-es3dfl?file=/src/index.js, do you foresee adding extra checks for this reality, or surfacing a flag so a use can opt-out of ancestor math or something else.
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Meet the top layer: a solution to z-index:10000
The top layer helps solve the problem of rendering content above the ... With new built-in components and APIs like <dialog> and "Pop-up", ......
Read more >Popover API (Explainer) - Open UI
The top layer is a layer that paints on top of all other page content, with the exception of other elements currently in...
Read more >WPF MVVM dialog example - Stack Overflow
I have a standard dialog window, with a content control in it. When ShowDialog is called it creates a new standard dialog, adds...
Read more >Dialog / Popup boxes not displaying content fully?
I have a problem with pop up dialog boxes on Windows 10 not displaying the content fully. Its rather frustrating as I can...
Read more >HTMLDialogElement.showModal() - Web APIs - MDN Web Docs
It displays into the top layer, along with a ::backdrop pseudo-element. Interaction outside the dialog is blocked and the content outside it ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m testing out this fairly naive middleware, based on the
offset
middleware, to manage this context:This feels like a situation that will come up more and more as these specs solidify and expect. It feels like this should be core library functionality, or at least a core library middleware.
Can do! My team and I are specifically looking into all of this right now, so hopefully I can get your something this week.