-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Style input/button tags in dropdowns #10248
Comments
I might be pointing out the obvious, but shouldn't you have btn btn-* classes on the buttons within the dropdown menu? I say this because I have a search (with appended submit button) inside a dropdown menu and the button has styling. |
Hi @Joyrex and thank you for your reply! Unfortunately |
Until v4 drops, we cannot change the behavior of the dropdown items, and by that I mean the only way we'd account for this is with required classes on the dropdown links (e.g., I'll make a note to consider this for v3.1 in #9397. |
@heruan - Oh, I see what you're wanting - you want to use elements in the dropdown as links, but not adopt the default styling. Any reason you want a button rather than just an HREF? If it's to submit a form, you could use a JS onClick event rather than an actual submit. |
@Joyrex yes, I can use anchors with JS listening on click events and this is what I'm doing right now. I'd just like to have the chance keep the HTML semantic with |
@mdo this feature has not been considerer, has it? I think it is not a great approach to have links to do actions (link submits) just because of the style. |
@raulgomis Come v4 we'll have more classes for these things and you can mix buttons and inputs and links all you want. |
I'd like to place a
<button type="submit">
in a dropdown button group, like this:It think it could be useful to have form submit buttons in dropdown button groups, but the dropdown style is now applied only to anchors (
.dropdown-menu > li > a
) and not to inputs or buttons.The text was updated successfully, but these errors were encountered: