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