Skip to content

Tooltip arrow does not align with content#444

Description

@martimalek
  • @freenow/wave version: 2.1.5 and lower

Relevant code

<Tooltip placement="top-start" content="This is a regular tooltip 馃彄">
  <span>
    Hover over me
  </span>
</Tooltip>

For all Tooltip placement variants where the arrow is not centred with the trigger element there will be a misalignment with the Tooltip content (see images to better visualise it)

Affects variants

  • top-start
  • top-end
  • bottom-start
  • bottom-end

What was expected to happen?

The arrow aligns with the content

Media

Wrong

image

Right

image

Right highlighting the alignment

image

Reproduction

Check it out in our docs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions