Skip to content

Popover/Tooltip: incorrect arrow position when using triggerRef #8960

@kristo

Description

@kristo

Provide a general summary of the issue here

When using triggerRef the arrow position is calculated incorrectly, the border width is not taken into account and the arrow is slightly shifted.

🤔 Expected Behavior?

the arrow position should be centered

😯 Current Behavior

the arrow is shifted by the width of the border

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/devbox/damp-fog-pz32ln

these two screenshots show the differences in the arrow position depending on the border

Image Image

Version

react-aria-components: 1.12.2

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions