react-aria Popover does not overlay trigger element when placement is bottom #7629
Open
Description
Provide a general summary of the issue here
When a react-aria popover is triggered, the overlay section does not overlay the trigger element when the placement is bottom.
🤔 Expected Behavior?
I expect the behavior to be the same with top and bottom placement. Note the following screenshots where we see a difference in behaviour when placement is top and when placement is bottom.
😯 Current Behavior
Currently, the overlay does not overlay the trigger element when placement is bottom.
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
import {
Popover,
Dialog,
DialogTrigger,
OverlayArrow,
} from "react-aria-components";
// Defn
function BasePopover({ children }: BasePopoverProps) {
return (
<Popover offset={12} containerPadding={8}>
<OverlayArrow>
<svg ... ></svg>
</OverlayArrow>
<div>{children}</div>
</Popover>
);
}
function Popover({ children }: PopoverProps) {
return (
<BasePopover>
<Dialog>{children}</Dialog>
</BasePopover>
);
}
const PopoverTrigger = DialogTrigger;
// Usage
<PopoverTrigger>
<Button>Open Popover</Button>
<Popover>
<p>Content</p>
</Popover>
</PopoverTrigger>
Version
react-aria-components: 1.5.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Mac OS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
Metadata
Assignees
Labels
No labels