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

Left and right tooltip arrow position is moving #4321

Closed
guisaas opened this issue May 4, 2022 · 1 comment · Fixed by #4324
Closed

Left and right tooltip arrow position is moving #4321

guisaas opened this issue May 4, 2022 · 1 comment · Fixed by #4324

Comments

@guisaas
Copy link

guisaas commented May 4, 2022

Bug description:

Left and right tooltip arrow is moving when hovering the button that triggers this tooltip instead of being directly centered

Link to minimally-working StackBlitz that reproduces the issue:

You can reproduce the issue with your current version of the portal: https://ng-bootstrap.github.io/#/components/tooltip/examples#basic by just hovering the left or right tooltip.

First the arrow is displayed not centered with the button. Then some time later, it moves to the center of the button

Versions of Angular, ng-bootstrap and Bootstrap:

Angular: 13

ng-bootstrap: 12.1.1

Bootstrap: 5

@maxokorokov
Copy link
Member

maxokorokov commented May 4, 2022

Tooltip

Definitely something animation-related


Another observation is that with reduced motion it is never positioned correctly until CD runs (ex. on click)

Tooltip 2

maxokorokov added a commit to maxokorokov/ng-bootstrap that referenced this issue May 4, 2022
Popper is now created outside Angular and updates are scheduled only after tooltip is shown.

Fixes ng-bootstrap#4321
@maxokorokov maxokorokov linked a pull request May 4, 2022 that will close this issue
maxokorokov added a commit to maxokorokov/ng-bootstrap that referenced this issue May 17, 2022
Popper is now created outside Angular and updates are scheduled only after tooltip is shown.

Fixes ng-bootstrap#4321
@maxokorokov maxokorokov modified the milestones: 12.2.0, 12.1.2 May 17, 2022
maxokorokov added a commit that referenced this issue May 17, 2022
Popper is now created outside Angular and updates are scheduled only after tooltip is shown.

Fixes #4321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants