sl-popup in scrollable section in<dialog> gets clipped in safari #2029
michaelwarren1106
started this conversation in
General
Replies: 2 comments 5 replies
-
Noted. We do plan on adding support for top-layer via the Popover API to tooltips so that will solve it. In the meantime, it looks like our |
Beta Was this translation helpful? Give feedback.
5 replies
-
would be awesome if 2.15.1 updates floating-ui and fixes things! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
This is not an issue with current Shoelace, but a forward-looking issue regarding switching to
<dialog>
for modalsWe use
sl-popup
for our implementation of tooltips and toggletips. Our implementation is almost exactly the same assl-tooltip
. But for our modal component, we went with a native HTML 5<dialog>
element instead of usingsl-dialog
so that we could get focus trapping andinert
behavior for free. But the#top-layer
mucks with tooltips.Scenario:
Implementing a
<dialog>
with a scrollable container withoverflow-y:auto
inside it. Then placing a tooltip in that scrollable container with content such that the tooltip is going to overflow the dialog container.The weird thing is that the whole tooltip gets drawn and shown for a second and THEN the tooltip gets clipped.
We started running into this, but Shoelace will run into this when the conversion to
<dialog>
starts and I know you all are looking into the new dialogs and popover top-layer stuff.To Reproduce
Steps to reproduce the behavior:
Demo
https://codepen.io/michaelwarren1106/pen/LYoNMNm
Screenshots
Browser / OS
Additional information
Provide any additional information about the bug here.
Beta Was this translation helpful? Give feedback.
All reactions