Skip to content
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

Add option to hide dropMenu caret #934

Closed
shafinmahmud opened this issue Apr 19, 2018 · 5 comments
Closed

Add option to hide dropMenu caret #934

shafinmahmud opened this issue Apr 19, 2018 · 5 comments

Comments

@shafinmahmud
Copy link

shafinmahmud commented Apr 19, 2018

Currently dropMenu renders with a caret besides Drop Menu. Though an option (drop) is available for down or up (default is down) but there is no way to hide them by native support from BootsFaces.

There should be an option or drop option should have some parameter to facilitate this flexibility.

@stephanrauh
Copy link
Collaborator

I suppose you can hide the caret with a CSS rule:

dropdown-toggle > .caret {
  display:none;
 }

@stephanrauh
Copy link
Collaborator

Does this solve your issue? Please report back so we can close the ticket.

@shafinmahmud
Copy link
Author

yes. the CSS rule works nicely. But I was looking an in-house option from Bootsfaces. I think that would be nicer. Like drop option could have some value like none to do this charm.

@stephanrauh
Copy link
Collaborator

@stephanrauh
Copy link
Collaborator

After pondering this question for a week, I've decided not to implement a dedicated BootsFaces feature. The CSS rule does the trick. It even works if you want to show or hide the caret depending on a breakpoint. Just add a media query to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants