Skip to content
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

Add informative tooltips #205

Merged
merged 13 commits into from
Dec 16, 2020
Merged

Add informative tooltips #205

merged 13 commits into from
Dec 16, 2020

Conversation

psvenk
Copy link
Member

@psvenk psvenk commented Dec 13, 2020

Closes #178. This is split out from pull request #157, which became unwieldy due to mixing the info tab feature (which seems to be ready to merge) with the tooltips (which may need a few more changes). Please refer to that pull request for more details.

Copy link
Member Author

@psvenk psvenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot "request changes" because this is identified as my pull request (due to my splitting this from #157), but @andOrlando here are some suggestions.

public/js/extraFunctions.js Outdated Show resolved Hide resolved
public/js/extraFunctions.js Outdated Show resolved Hide resolved
public/js/extraFunctions.js Outdated Show resolved Hide resolved
public/home.html Outdated Show resolved Hide resolved
public/home.html Outdated Show resolved Hide resolved
public/js/extraFunctions.js Outdated Show resolved Hide resolved
public/js/extraFunctions.js Outdated Show resolved Hide resolved
andOrlando and others added 13 commits December 16, 2020 13:38
adds hover spans to certain (mostly header) icons. Please fix my css if I messed something up, especially that whole .tabulator-col .tabulator-header thing.
updates header-icon and a couple other icon classes so that they're centered in their columns.

This was my first commit without the handholding of github desktop :)
Fixed the click areas that I messed up last time
Changes how the icons are centered, makes them actually be in the center
of the header instead of just using left padding
also adds a tooltip for the hide button
also makes the plus button green (sorry psvenk for not doing as separate
commit)
I attempt to set up the tooltips as soon as the parents have an actual width so I can calculate what the margin-left should be
- Delay before and after clicking along with slight transition for opacity
- removes header tooltips from some icons
- adds tooltips to table icons
- standardizes icon sizes to make it easier to hover/click
- makes GPAType function only change the text and not the whole html of an element
- updates setup_tooltip_margins to not do margins unless the width of its parent isn't 0
We have formed a consensus that 375ms is more discoverable than 750ms
but still unobtrusive.
- fixes the said bug
- reformats some of the toggle_fullscreen_pdf code for readability
Remove commented dead code and fix spacing of "for" loops
I was already using setup_tooltip_margins at various instances, so this just changes setup_tooltip_margins to encompass setting up the entire tooltip so that it's easier for more tooltips to be used in the future.
It was going too fast before, with barely any delay before it disappears so if someone were to hover over the tooltip right after they're on the icon it might fully or partially disappear before they get to it
Co-authored-by: psvenk <45520974+psvenk@users.noreply.github.com>
-changes a let to a const
-instead of removing the class tooltip it removes the attribute
@psvenk psvenk merged commit 83d8c91 into master Dec 16, 2020
@psvenk psvenk deleted the tooltips branch December 16, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show descriptive text when hovering over icons to improve user experience
3 participants