RocketCommunicationsInc / astro

Astro UXDS is a collection of guidelines, patterns and components for designing space-based user interface applications.
https://astrouxds.com
Other
108 stars 25 forks source link

Rux-pop-up: popups do not position correctly when nested within other popups #953

Closed kiley-mitti closed 10 months ago

kiley-mitti commented 1 year ago

Describe the bug When one rux-pop-up is nested inside another rux-pop-up, the inner pop-up does not position correctly adjacent to its trigger. To Reproduce Check outthis sandbox in various browsers. It acts differently in basically all of them.

Note: In Chrome this does work properly when strategy="fixed" is not implemented.. but it fails in all other browsers in both cases.

Current behavior When a nested popup trigger is clicked, its corresponding popup does not appear next to the trigger correctly. It appears elsewhere on the page.

Expected behavior When a nested popup trigger is clicked the corresponding popup should appear next to the trigger based on placement=""

Screenshots

Screen Shot 2022-11-23 at 3 13 07 PM Screen Shot 2022-11-23 at 3 13 30 PM Screen Shot 2022-11-23 at 3 13 20 PM

Works in Chrome sometimes

CodeSandbox If applicable, please provide a CodeSandbox or other online code editor tool link that contains an example of the bug.

Check outthis sandbox

Environment (please complete the following information):

Additional context It's likely a FloatingUI issue that needs some digging.

markacianfrani commented 10 months ago

closing due to inactivity