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

Tooltips Do Not Work on Child Elements #31080

Closed
isteiger opened this issue Jun 17, 2020 · 8 comments · Fixed by #30928
Closed

Tooltips Do Not Work on Child Elements #31080

isteiger opened this issue Jun 17, 2020 · 8 comments · Fixed by #30928
Labels

Comments

@isteiger
Copy link

When upgrading, I noticed my tooltips on anything other than text (such as a Font Awesome icon) did not work. On Bootstrap 4 it works. I know it is a Bootstrap problem and not a Popper.js problem as it worked in Bootstrap 4.

My Info:
macOS Catalina 10.15.5, Chrome 83.0.4103.97

Here is a CodePen

@XhmikosR
Copy link
Member

XhmikosR commented Jun 17, 2020

Not sure it's JS-related after all. It seems Font Awesome related. Changing z-index to -1 works:

.fas {
  z-index: -1;
}

Note that you don't need jQuery nor popper.js; you can just use our bundle dist file.

@isteiger
Copy link
Author

That fixes it, but I wonder why it works in v4 and is broken in v5.

@isteiger
Copy link
Author

I checked the HTML and it doesn't even appear there on the bottom of it unless the z-index is set to -1.

@XhmikosR
Copy link
Member

Yeah, I hadn't have the chance to look closer, maybe someone else from the team will.

@isteiger
Copy link
Author

I found something. Let me update my codepen.

@isteiger
Copy link
Author

Check the codepen.

@XhmikosR
Copy link
Member

Could be #30928

@isteiger
Copy link
Author

isteiger commented Jun 17, 2020

After testing that, the issue went away. Could you link the pull request to this issue?

@isteiger isteiger changed the title Tooltips Only Appear on Text Tooltips Do Not Work on Child Elements Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants