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

Bad .tooltip-inner placement when using variations in fallbackPlacements option #38080

Closed
3 tasks done
Rezyan opened this issue Feb 19, 2023 · 0 comments · Fixed by #38121
Closed
3 tasks done

Bad .tooltip-inner placement when using variations in fallbackPlacements option #38080

Rezyan opened this issue Feb 19, 2023 · 0 comments · Fixed by #38121
Labels

Comments

@Rezyan
Copy link

Rezyan commented Feb 19, 2023

Prerequisites

Describe the issue

When using variations in fallbackPlacements option (e.g. top-start, top-end, etc.), the .tooltip-inner class is badly placed. However, the .tooltip-arrow class seems to be well placed.

CodePen: https://codepen.io/Elysiome/pen/dyqYVJw

Current behavior:

Current behavior

Expected behavior:

Expected behavior

Reduced test cases

It seems that this issue comes from the padding of the .tooltip class which is equal to the height of the arrow: var(--bs-tooltip-arrow-height). But I'm not sure.

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of Bootstrap are you using?

v5.2.3

@Rezyan Rezyan changed the title Bad tooltip placement when using variations in fallbackPlacements option Bad .tooltip-inner placement when using variations in fallbackPlacements option Feb 19, 2023
@louismaximepiton louismaximepiton added css and removed js labels Feb 27, 2023
Rezyan added a commit to Rezyan/bootstrap that referenced this issue Feb 28, 2023
mdo pushed a commit to Rezyan/bootstrap that referenced this issue Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
3 participants