-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bring tooltips back #494
Bring tooltips back #494
Conversation
…ltip position to 'right'
I cannot get the tooltips to behave, they extend the full width of the annotation-edit panel so they require to be horizontally scrolled into view to fully read them. Upon doing that, the panel scrolls back after a short delay. We should either disable that, or make sure the tooltips do not extend past the bounds of the viewport. |
I intended to finish this branch today, but I'm giving up on it for now, because I want to get a release out. I found this resource on the interaction between positioned elements, z-index and overflow: https://css-tricks.com/popping-hidden-overflow/. In theory, its lessons might apply to our situation, but this remains elusive because there are several positioned elements between the hiding element and the overflowing element. A CSS-only solution based on a |
The more I think of this, the more I think we should request proper definitions, rather than just comments, from the consortium members. The tooltips should give a short indication of what the category is intended for. The comments provide this information, but also information that an annotator probably wouldn't need, e.g., which classes a given category extends. Perhaps the comments could form the basis of the requested Glossary (#452 ) instead. |
@BeritJanssen I agree about the tooltip content. Regarding the technical problem, I just got an idea that I think should work. We could factor out the tooltip part of Would you like to have a go at this? Otherwise, I think I can do this fairly quickly. |
Should be fixed now. Please review!
|
Works! Nice job @jgonggrijp When hovering a superclass, it obscures the children in the ontology class picker. I think this will mostly be resolved by having shorter class descriptions. Otherwise it may be feasible to move the tooltips on the superclass to 'top' or 'left'. |
This branch closes #448 . It sets tooltips based on
rdfs.comment
, ifskos.definition
is not available. It also changes the default position of tooltips tois-tooltip-right
, since this works better with the layout of the menus. However, text may be cut off (can be scrolled to), so some extra tweaking may be necessary.