-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
. #1730
Comments
👍 |
In my implementation I use a |
@powder96 Thanks ! |
I would love to see more options for the popovers as well. Like being able to disable the title. :) |
I can see us enabling this, making popovers more flexible and durable. I'll talk with @fat. |
Thanks, @markdotto. Another option: just let us specify an id and/or class for popovers (and for tooltips, 'cause I guess that underlies the popover implementation) and then we can provide our own styling attributes like width and height. |
how is this not just a tooltip? Particularly in the example above, i lol'd. |
I think the behavoir should be similiar to that of the modals. You lay out the structure of the popover/popover-menu in the markup and trigger them via js. That way they are persistent and don't get removed from the page everytime they aren't visible. |
@klaemo You can specify a custom popover template using the 'template:' option. But that's not quite as easy as just having the title area disappear if there is no title. |
My take on this is to have a data attribute that would set a custom class in the first div of the popover (and maybe even do it in the tooltip js file). so like <a class="btn" data-custom-class="myClass" data-original-content="look at this content">hover me Then the popover would start with <div class="popover myClass"><div class="popover-inner">etc... |
I can definitely put in a vote for this. It would be great to be able to specify a custom classname to be used by a popover..! Popovers are not appended to their triggering elements but instead directly to the page body, thus currently the only way to do custom styling is universally. |
Not that we'll be going with this pull request, but just wanted to link these two together: #2332. |
👍 |
👍 both for window size automatically fitting the content & ability to style individual popovers. |
👍 |
1 similar comment
👍 |
👍 on this and removing all html inside.. like title etc:) |
Tagging this issue as popular, please stop commenting on this issue with +1. thanks! |
If this is popular, why is it still open for 7 months? |
Popularity doesn't inherently mean we'll prioritize to add something. It's simply a way for us to organize issues and tackle them as we can. Improved popovers would be nice, but bugs and larger themes (e.g., our broke as hell modals) are more important to us in the long term. It's just a matter of time, energy, and everything else that goes into this. If you want it sooner, talk to @fat to come up with the right solution, then submit a pull request. Otherwise, we'll get to it when we can. |
@markdotto, @fat just closed my absolute modal pull request, so there you go. =( people have proposed solutions... which are two lines of code and would solve the problem just fine, yet those solutions get closed out with @fat comments like 'just do this in css', which is clearly impossible. https://github.com/twitter/bootstrap/pull/2332/files sometimes I think you guys make this project a lot more difficult than it needs to be. |
i closed your pull request because it had no unit tests. beyond that, looking at it now, the code was poor. it would not have been merged. we try not to set css values explicitly in js, which is why the pull request you are referring to was closed. this project is what it is because we make it difficult. |
The existing modal code is poor (or as @markdotto said above... If you have suggestions on how to improve the modals, let me know in the comments and give me a chance to fix things to comply with your coding standards. Don't just close the pull request with no comment, that's just plain rude. This project is great. Thank you so much for it. I rely heavily on it and therefore I want to contribute to it. I'm also glad you have good standards for it. I'm not trying to discourage that at all. That said, since you do have willing people to help you out, try a bit harder to encourage that so that issues like this one just don't sit around for 7 months. Spend two minutes describing what a valid pull request would look like to fix the issue and let someone else try to code it up. |
Im willing to give this one a shoot with proper documentation, test and everything required for a proper pull request to be merged in if I can get any directions in how this issue should be solved to fit bootstrap the best. Cheers. |
@andriijas If you're still game, let's change up the popovers a bit:
Thoughts? |
Very nice ideas @markdotto I tossed together the small, medium, large classes and made a quick example: http://jsbin.com/ecojob/1/edit (commit: https://github.com/andriijas/bootstrap/commit/4b79e99e3940a69656c35b4911e12f3f15086f35) Im not sure which would be the best way to add the sizes on the popovers but probably via data attributes? Didnt have time to fiddle with the js now, to make it more complex the popovers are inherited from tooltips. There are tons of quirks Ive ran into, mostly related "responsive popovers". |
@andriijas @markdotto The custom classes would be helpful, but I also think it would be helpful if we could pass a custom class or id that is added to the popover. This would allow styling individual popovers and would give them much greater flexibility. @drewda and others have requested the same thing in the comments above. Would passing a custom class/id be considered if I or someone else were to implement it? Edit:
|
@flynfish feel free to try to get a pull request in shape because I dont have a lot of time at the moment :/ |
No description provided.
The text was updated successfully, but these errors were encountered: