Base UI's PopoverTrigger injects invisible focus guard <span> elements as siblings when the popover opens. The space-x-2 utility (which uses > * + *) applied margin to these spans, causing the button to shift. Replace space-x-2 with gap-2 which is unaffected by DOM changes. Co-authored-by: Matt Kane <[email protected]>