-
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
Tooltips and Popovers #23
Conversation
This also causes the entire Water Column to be on top of value wells on narrow screens, but that is a problem for a future redesign effort. Refs #17
When a popover is shown below the thumbnail, the arrow is aligned with the title which has a prominent, non- white background color. A plain white arrow looks starkly out of place. To fix this, we add the NLCD / Soil group name to the arrow, and if and only if the popover is shown below the thumbnail, we use the title color's arrow. Else, we show the regular white arrow, which goes better with the popover body.
Previously all the popovers would open to the left of the thumbnail, uniformly. This unfortunately occluded the main content. To avoid that, now we open the popover of the left-most thumbnail of every row to the right. For all the NLCD thumbnails, the popover is opened below them. For the Soil thumbnails, the popover is opened above. This works well for all cases except the right-most ones, whose content is a little squished for lack of room. This may be an acceptable compromise given the client's needs. Refs #19
Tagging @designmatty for design review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a design perspective.
According to this recommendation: https://www.shellcheck.net/wiki/SC2230
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I noted the placement of the column chart over other content on narrow screens, but realize there is a tradeoff to what gets placed on top. Nice job with the popup arrow colors 👍 🌈
Thanks for reviewing! We have #21 for tackling that overlap. |
Overview
Ensures that water column tooltips are always on top. Also ensures that thumbnail popovers do not obscure the main content.
See commit messages for details.
Connects #17
Connects #19
Demo
Tooltips on top:
Non-obscuring popovers:
Testing Instructions
./scripts/setup.sh
vagrant ssh -c 'cd /vagrant && ./scripts/bundle.sh --debug'
vagrant ssh -c 'cd /vagrant && ./scripts/server.sh'