-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Misaligned popover arrows #25045
Comments
Right! Popper positions this correctly, just the pseudo elements (responsible for rendering the actual arrow) should be aligned to the center of |
Possible fix:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems similar to #23793, although I could not reproduce the issue for tooltips, but indeed for popovers.
Here is a demo: https://codepen.io/simonihmig/pen/WdxXja. The first button triggers a popover, where you can clearly see that the arrow is misaligned.
It has
left: 132px
applied by popper.js. However the popover itself has a width of276px
, so the center should rather be137px
. And indeed if I set this manually to this value orleft: 50%
in Chrome Dev Tools, then it is perfectly aligned! So somewhere this 5px offset is causing the misalignment.The text was updated successfully, but these errors were encountered: