adobe / react-spectrum

A collection of libraries and tools that help you build adaptive, accessible, and robust user experiences.
https://react-spectrum.adobe.com
Apache License 2.0
12.28k stars 1.08k forks source link

RAC ListBox preview bug on safari when using a combination of position relative and absolute #6354

Open fredericrous opened 2 months ago

fredericrous commented 2 months ago

Provide a general summary of the issue here

In ListBox component, from RAC, we are locked with a DragPreview that renders inside ListBox. When ListBox is inside a complex layout using a combination of position relative and absolute, the drag preview, on safari, gets shown dark

πŸ€” Expected Behavior?

The provided DragPreview is rendered in all browsers

😯 Current Behavior

The provided DragPreview is rendered buggy in Safari, I see it at a different position than what I expect and the div is dark

πŸ’ Possible Solution

or

or

πŸ”¦ Context

No response

πŸ–₯️ Steps to Reproduce

Version

1.2.0

What browsers are you seeing the problem on?

Chrome, Safari

If other, please specify.

Safari 17.3.1, Chrome for IOS v123.0.6312.52

What operating system are you using?

macos 12.5, ios 17.4

🧒 Your Company/Team

No response

πŸ•· Tracking Issue

similar issue: https://github.com/adobe/react-spectrum/issues/4797

fredericrous commented 2 months ago

@BenBeattieHood I see in the code a property UNSTABLE_portalContainer for modal, tooltip and popover. It looks like drag preview were forgotten