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

Tooltip arrows are not visible with Bootstrap 5.3.0 #2765

Open
val1984 opened this issue Aug 17, 2023 · 1 comment
Open

Tooltip arrows are not visible with Bootstrap 5.3.0 #2765

val1984 opened this issue Aug 17, 2023 · 1 comment

Comments

@val1984
Copy link

val1984 commented Aug 17, 2023

  • components: tooltip
  • reactstrap version #9.2.0
  • import method es
  • react version #18.2.0
  • bootstrap version #5.3.0

What is happening?

Tooltip arrows are not visible with Bootstrap 5.3.0.

What should be happening?

Tooltips should have an arrow.

Steps to reproduce issue

  1. Visit Stackblitz link
  2. Hover on the link
  3. See that the tooltip arrow is missing

Code

Stackblitz repro
This is a copy/paste from first example of the documentation with updated dependencies (particularly Bootstrap 5.3.0).

Might be caused by this commit in Bootstrap.

@val1984
Copy link
Author

val1984 commented Aug 18, 2023

I found a workaround:

const fixTooltipModifier = {
  name: 'offset',
  enabled: true,
  phase: 'main',
  options: { offset: [0, 6] },
} as OffsetModifier;

function MyTooltip() {
  return <Tooltip modifiers={[fixTooltipModifier]}>My Tooltip</Tooltip>
}

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

No branches or pull requests

1 participant