How do I remove/hide the little arrow to the right of an icon from ngbDropdownToggle in ng-bootstrap?
Followed examples: https://ng-bootstrap.github.io/#/components/dropdown/examples
My code:
<ul class="navbar-nav ml-1">
<li ngbDropdown class="nav-item">
<a class="nav-link" ngbDropdownToggle>
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" class="bi bi-three-dots-vertical" viewBox="0 0 16 16">
<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/>
</svg>
</a>
</li>
</ul>
Thank you.
First add a custom class or id to the element with the ngbDropdownToggle. Than you can add this CSS.
.custom-class-or-id:after {
content: none !important;
}
This will remove the ,,auto-added'' arrow icon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With