-
Notifications
You must be signed in to change notification settings - Fork 5.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
Switch to Popper.js for tooltips/dropdowns positioning? #10544
Comments
cc @kball but if you ask me I dont think so... |
Btw just saw that you are the creator of the popper framework... So what are the benefits of Popper over current JS code of ours @FezVrasta ?? |
I already provided a little explanation on the initial post. I'm going to write a comprensive list tomorrow if it's not a problem for you. It's a bit late here right now |
No issue i will be waiting! |
Thanks a lot @FezVrasta ... This satisfies me ... But will need other people thoughts also |
I agree to the downsides @FezVrasta has described regarding the current plugin. So in my eyes it's not wrong to use a well-tested positioning engine instead of a custom solution if it can be integrated into the current code without breaking backwards compatibility (or at least without the need to change a lot). |
We have to agree that not many tests/work have gone through our explicit positioning and it wont even happen coz foundation need to think broad and not just positioning |
Would happily accept a PR for this, but as @SassNinja points out backwards compatibility is important. |
@FezVrasta Would you like to do a PR for this ? @kball I would say dont target this on 6.5 but 7 (Nov Release) |
I don't know if I'll have time in these weeks. If I manage to finish my work I'll see if I'm able to work on this. |
I don't think there is any rush if its targeted for F7... |
V7 requests are being closed for the time being. We have them labeled so we can readdress them in the future. |
I see you have a lot of logic to handle the tooltips and popovers position, but still the result is far from optimal.
For instance, I see the tooltips won't flip to stay into viewport area if they overflow it.
Have you considered the idea to drop all your custom logic and rely on something like Popper.js?
Bootstrap v4 makes use of it and everything works nicely.
Project page: https://popper.js.org
Repo: https://github.com/FezVrasta/popper.js
The text was updated successfully, but these errors were encountered: