Skip to content

[Bug]: Tooltip and Popover (with tip) should have the same distance from trigger in overlay-trigger with same offset value #3321

Open
@spdev3000

Description

@spdev3000

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

Overlay, Tooltip, Popover

Expected behavior

If we use <overlay-trigger> with (or without) offset attribute - this (default) offset value should lead to same distance of tooltips and popover (with tip element) to the trigger element.

Actual behavior

If you compare tooltip and popover here at https://studio.webcomponents.dev/edit/mOF1zUEjLJzODGXFYaIU/src/index.ts?branch=dfda%40yOBt1947wIZCL9LXYVLsyGBLOok1&p=stories - it is not aligned, although no offset values are provided.
Screenshot 2023-06-15 at 08 55 42

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to https://studio.webcomponents.dev/edit/mOF1zUEjLJzODGXFYaIU/src/index.ts?branch=dfda%40yOBt1947wIZCL9LXYVLsyGBLOok1&p=stories
  2. Click on action button to open popover
  3. Close popover and hover over action button
  4. Compare distances/offsets from trigger button to overlaid content

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

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