Hi there. The s-popover positioning logic seems off for tall popovers when positioning the popover below the controller would cause the bottom of the popover to go off screen. In these cases, it positions above the controlling button and is almost entirely invisible. While having tall popovers like this isn’t good, it seems like showing more would be better than less.
You can test this easily:
import { useId } from "react";
export default function WrongWayPopover() {
const smallPopover = useId();
const mediumPopover = useId();
const largePopover = useId();
return (
<s-page heading="Additional">
<s-stack direction="inline" gap="small-300">
<s-button commandFor={largePopover} command="--toggle">
Large
</s-button>
<s-button commandFor={mediumPopover} command="--toggle">
Medium
</s-button>
<s-button commandFor={smallPopover} command="--toggle">
Small
</s-button>
</s-stack>
<s-popover id={smallPopover} minBlockSize="200px">
This is a small popover.
</s-popover>
<s-popover id={mediumPopover} minBlockSize="500px">
This is a medium popover.
</s-popover>
<s-popover id={largePopover} minBlockSize="1200px">
This is a large popover.
</s-popover>
</s-page>
);
}
With the large popover (on my screen), it does this:
