Below is the arrow of the tooltip without any shadow effect:
https://i.sstatic.net/8gmO1.png
I've been attempting to add a shadow effect to the arrow, but due to its border-based nature, I haven't achieved the desired outcome. The current rendering looks like this:
https://i.sstatic.net/ZDJx1.png
Does anyone have suggestions on how to incorporate a shadow for the arrow section into the rest of the tooltip design? (See code snippet below)
I tried looking at various resources such as this one, but couldn't find a specific solution for adding shadows.
Appreciate any help or guidance on this matter.
$('[data-toggle="tooltip"]').tooltip('show');
html body {
background: #eee;
}
button.btn {
margin-top: 100px;
}
.tooltip-inner {
background-color: white !important;
color: gray !important;
border-radius: 0 !important;
box-shadow: 2px 2px 4px 0px rgba(161, 161, 161, 1);
}
.bs-tooltip-right .arrow::before {
border-right-color: white !important;
box-shadow: 2px 2px 4px 0px rgba(161, 161, 161, 1);
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Something">
Some tooltip
</button>