Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with clr-tooltip when clrPosition is not explicitly set #370

Closed
2 of 5 tasks
tsvetomirnik opened this issue Nov 1, 2022 · 2 comments
Closed
2 of 5 tasks
Assignees
Labels

Comments

@tsvetomirnik
Copy link

Describe the bug

There is a rendering issue with tooltips when the clrPosition property is not explicitly set (on the clr-tooltip-content).

How to reproduce

It can be seen in https://clarity.design/documentation/tooltips > Angular Components > Examples > Right:

Show GIF with flickering content

tootip-flashing-issue

image

Steps to reproduce the behavior:

  1. Open the stackblitz https://stackblitz.com/edit/clarity-with-clr-angular-ui-3zkuc9
  2. Hover over the first ⓘ icon

Actual behavior

The tooltip's content flashes over the ⓘ icon. When the icon is focused the content stays open but it's misaligned.

Expected behavior

The tooltip's content should appear on the right of the ⓘ icon (the default direction for the angular component).

Versions

Clarity version:

  • v12.x
  • v13.x

Framework:

  • Angular
  • React
  • Vue

Framework version:
Angular 14

Additional notes

The workaround is to set the clrPosition:

<clr-tooltip>
    <clr-icon clrTooltipTrigger shape="info-circle" size="24"></clr-icon>
    <clr-tooltip-content clrPosition="right" *clrIfOpen>
        <span>Lorem ipsum sit</span>
    </clr-tooltip-content>
</clr-tooltip>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

🎉 This issue has been resolved in version 13.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants