Changing Dropdown Icon on Bootstrap 4

前端 未结 6 1572

On Bootstrap 3 this was pretty easy, you just had to change span and add whatever icon you wanted instead. But that doesn\'t seem the case with Bootstrap 4. Or maybe I\'m missin

6条回答
  •  天命终不由人
    2021-02-01 04:17

    You have to hide the caret icon like this..

    .dropdown-toggle::after {
        display: none;
    }
    

    Then add the fontawesome icon..

    
    

    http://codeply.com/go/xd2b75iUbM

    OR, just remove the dropdown-toggle class from the button as it's only purpose seems to be showing the caret icon.

提交回复
热议问题