Utilizing bootstrap 5 on my website, I encountered an issue with tooltips (taken from the official documentation website): https://getbootstrap.com/docs/5.1/components/tooltips/#examples
Despite extensive searching on Google and Stackoverflow, none of the suggested solutions seem to work for me. Here is the problem I am facing:
Instead of the desired outcome:
https://i.sstatic.net/8YQm2.png
I am getting this result:
https://i.sstatic.net/8AXgF.png
This is the HTML code snippet causing the issue:
<li class="ms-3"><a class="text-muted bi-geo-alt" href="https://goo.gl/maps"
target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"
title="Testing"></a></li>
Here are the dependencies listed in my package.json:
"dependencies": {
"@popperjs/core": "^2.11.5",
"bootstrap": "^5.1.3",
"bootstrap-icons": "^1.8.1"
},
"devDependencies": {
"css-loader": "^6.7.1",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "^2.6.0",
"style-loader": "^3.3.1",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.8.1"
},
In addition, I have imported the following into my index.js file:
import 'bootstrap/dist/css/bootstrap.min.css' // Bootstrap CSS
import 'bootstrap-icons/font/bootstrap-icons.css' // Bootstrap Icons