Bootstrap tooltip issues #1196
Unanswered
Sup3rlativ3
asked this question in
Support
Replies: 2 comments
-
|
So the tooltip (/node_modules/bootstrap/scss/_tooltip.scss) sets transparency to 0 for tooltip and that seems to be causing the issue. I confirmed this by setting the below on the page with tooltips |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If you'd like to use Bootstrap's tooltips, you'd only have to do two things: In # Doks (@hyas/doks-core)
[doks]
# Bootstrap
bootstrapJavascript = true # false (default) or trueAdd to // Put your custom JS code here
import { Tooltip } from 'bootstrap';
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
// eslint-disable-next-line no-unused-vars
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new Tooltip(tooltipTriggerEl))And, you're good: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I wanted to enable tooltips on my site so in the params I enabled bootstrapJavascript
I added the tooltip information to a span just to test.
Tooltips still weren't working so I assumed it was just the base version of the bootstrap js which doesn't include popper which is needed for the tooltips to work.
So in my custom-head.html file I added the bootstrap bundle js
This worked to enable the popups. I tested locally and things seemed to be working as expected.
I then pushed these changes to my Azure Static Site and noticed that the popups had no styling at all and everything but the text was transparent. I've tested this on both Chrome and Firefox and the same issue is present.
I added some custom css to test if I could target the tooltip and I've shown that works both locally and on Azure. Interestingly I have to add !important or the change won't show.
Does anyone have any idea why the tooltips would be losing all styling?
Beta Was this translation helpful? Give feedback.
All reactions