Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove little arrow from ngbDropdownToggle

Tags:

ng-bootstrap

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.

like image 748
MeIr Avatar asked Dec 05 '25 20:12

MeIr


1 Answers

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.

like image 172
Krzysztofz01 Avatar answered Dec 09 '25 20:12

Krzysztofz01



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!