My experience with tippy.js in my browser had been smooth until this morning. All of a sudden, they stopped responding to any CSS styling and simply defaulted to a dark grey background with border radius. However, they still respond to changes in the script, such as making them follow the cursor. I have tried reinstalling much of the script, but I am puzzled by what could be causing this.
<!-- Development -->
<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
<!-- Production -->
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script>
tippy('[title]', {
theme: 'custom',
arrow: false,
followCursor: true,
content(reference) {
const title = reference.getAttribute('title');
reference.removeAttribute('title');
return title;
},
});
</script>
This is the CSS code that is currently not functioning:
.tippy-tooltip.custom-theme {
background-color: #f7f7f7;
color: black;
border:1px solid #ededed;
border-radius:0;
}