Replace Qtip Library with Floating ui#439
Conversation
gneissone
left a comment
There was a problem hiding this comment.
Please see review vivo-project/VIVO#3937 (review) for general remarks.
These changes work well with Wilma, but do not work with the default vitro template since vitro does not include bootstrap. Wonder if the tooltips can just be dropped completely in the vitro template, since it was intended to be minimal in the first place...
51646ef to
ddddae7
Compare
| margin-top: .5em; | ||
| } | ||
|
|
||
| .show { |
There was a problem hiding this comment.
Could you tell me where this css class is used?
There was a problem hiding this comment.
When I tried to upgrade to Bootstrap 5 this was a fix to handle the tabs section. Bootstrap automatically adds "show" class to the tab of the panel that needs to show.
Since the bootstrap 5 upgrade is reverted from this PR, this is actually useless and I will remove it.
https://youtu.be/X56Hxjf6seI |
First step is to build Vitro, not VIVO. |
@milospp Did you manage to reproduce the issue? |
Yes, I reproduced it. I just didn't work on it until now. I updated the code. Can you check it out now? |
* Replaced Qtip with Popper and bootstrap * Removed Qtip libraries and modifies style for tooltip * Fixed position of download popup * Fixed popper for Vitro, Nemo and Tenderfoot themes * Fixed tooltip design and nemo theme search results page * Removed !important tags * Fixed opacity difference * Created tooltip css for everytheme to reduce reduntant code * Renamed vivoToolip to vitroTooltip * Refactored code * Adding bootstrap-5.3.2 * Added padding in tooltip * Removed bootstrap * Removed bootstrap * excluded bootstrap from popper * Refactored code * Refactor popper code * Added floating webjar * Migraiton popper to floating * Refactored code, divided in smaller functions * Fixed arrows * Deleted unused popper library * Replace word 'popper' from variables with tooltip * Removed test logs * Improved readability for tooltip functions * Added tooltip-utils.js into vitro individual ftl * Fixed missplaced popper in vitro




VIVO GitHub issue: 3931
Linked VIVO PR
What does this pull request do?
This pull request focuses on the removal of the Qtip library from the project, substituting it with Floating ui Library. The design has been configured to maintain similarity with the previous implementation using Qtip.
Only the Vitro part of PR is mandatory for the popper to work, other changes in Vitro and VIVO PR are only to initiate tooltip and style it.
What's new?
The Popper tooltip automatically identifies available screen space for display.
Before:
After:
How should this be tested?
On the Individual profile page:
On the Search results page:
On the MapOfScience page:
Additional Notes:
Interested parties
@VIVO-project/vivo-committers