-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make arrow icon on ngbDropdownToggle optional #2560
Comments
Need to think about this API more... The obvious solution would be to remove the
|
test ;P |
it's just a button. It should only be a button - no icon. There are tons of other resources to add icons/arrows etc. after the fact if desired. |
I believe styling options should be all left to Bootstrap and it has been a mistake to add |
One possible solution, now that reversing the decision would be a breaking change, is to add an extra CSS rule that looks for the state of an attribute. In my case:
Then I add Another possibility is adding another directive that has a different selector than ngbDropdownToggle. You can also break backward compatibility when you increment the version (ex: to Bootstrap 5). |
I used the plain bootstrap dropdowns in table headers for implementing filtering capability. It looked like this:
I'm now migrating to using ng-bootstrap and it looks like the ngbDropdownToggle directive automatically adds a little arrow icon. This might be desirable in most cases, but in this case it looks a bit strange:
So my feature request would be an option which allows to prevent adding that arrow icon.
The text was updated successfully, but these errors were encountered: