Tagged: x
-
AuthorPosts
-
June 7, 2016 at 10:04 am #1030050
hjuskewyczParticipantI added tooltips for small
(?)icons here: https://lingohub.com/pricing/The problem on the last pricing column is that the tooltip is not exactly at the top of the icon and also the arrow is somewhere inside the tooltip. I think it is floating left because the pricing column is restricting the tooltip’s container.
I can’t use any options (like container or viewport) from bootstrap: http://getbootstrap.com/javascript/#tooltips-options
Because it is not supported by thex_extrashortcode.How can I fix this layout bug?
June 7, 2016 at 1:53 pm #1030411
RupokMemberHi there,
Thanks for writing in! It seems you have added the below code on your Child Theme :
.x-pricing-column-info ul > li { background: #f2f5f7 none repeat scroll 0 0 !important; border: medium none !important; font-size: 1rem; font-weight: 400; margin: 0; padding: 0 6px 10px 28px; }I can see the padding: 0 6px 10px 28px; shrinking the area. So you can try decreasing the left padding and check again.
Cheers!
June 8, 2016 at 3:10 am #1031432
hjuskewyczParticipantI am not sure what this should do, that is not the solution I was looking for 😉
I just want the tooltip to be in the right position and not floating to the left because the container isn’t big enough.. is there no other solution?
because otherwise I will overwrite the tooltip CSS for the ones in the pricing columns!
June 8, 2016 at 7:37 am #1031731
hjuskewyczParticipantAnother problem is using mobile:
with iPhone using Safari:
– the tooltip doesn’t disappear again when clicking outside, when clicking on an open tooltip the site jumps to the beginningwith Android using Chrome:
– Tooltip does disappear when clicking outside, but always when clicking on a tooltip link the site jumps to the beginning (href=”#”)How can I fix these problems?
When trying both phones with the original bootstrap site everything works as expected:
http://getbootstrap.com/javascript/#tooltipsJune 8, 2016 at 3:23 pm #1032612
RadModeratorHi there,
Please add this CSS for tooltip arrow.
.tooltip.top .tooltip-arrow { top: auto !important; } .tooltip { width: 130px; }The positioning is due to tooltip width and icon width. Hence restricting it to 130px somehow fixes the compression that causes the misalignment.
About your other issues, that’s because your link has
href="#". Try changing it tohref="javascript:void();". As for safari, I think it’s a browser bug. For example, they are affected here https://github.com/twbs/bootstrap/issues/16028 too and until now, they still don’t have a clear fix. I’ll continue checking but I can’t guarantee a result.Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1030050 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
