I have a question regarding the version of Bootstrap being used in my package.json file:
{
"_from": "bootstrap@^4.5.0",
"_id": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="34565b5b40474046554474001a021a04">[email protected]</a>",
...
}
Specifically, I want to change the background color of tooltips on certain pages by adding a new class. Here is the HTML code snippet:
<a href="#" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom" class="red-tooltip">Tooltip on bottom</a>
Although I successfully changed the background color without the "red-tooltip" class using CSS, adding it in front of the relevant lines did not work. Here is the CSS code I used:
.tooltip.show {
opacity: 1;
}
.tooltip-inner {
background-color: #ff0000;
box-shadow: 0px 0px 4px black;
opacity: 1 !important;
}
.tooltip.bs-tooltip-right .arrow:before {
border-right-color: #ff0000 !important;
}
.tooltip.bs-tooltip-left .arrow:before {
border-left-color: #ff0000 !important;
}
.tooltip.bs-tooltip-bottom .arrow:before {
border-bottom-color: #ff0000 !important;
}
.tooltip.bs-tooltip-top .arrow:before {
border-top-color: #ff0000 !important;
}
If anyone could provide guidance on how to achieve this with the addition of the ".red-tooltip" class, I would greatly appreciate it.