Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds tooltips to the buttons. This may seem a bit "extra" for now, but as the Rojo workflow gets more complex (two-way, etc) the single-word buttons aren't enough to convey the meaning behind them, necessitating tooltips. Superfluous tips will likely never been seen by users anyway (since they are unlikely to hover) so there's no detriment to adding them even to simple buttons.
Features:
Tech breakdown:
Tooltip.Provider
wraps the App, cascading the Context everywhere.Tooltip.Canvas
renders any tip popups- it is done this way because Sibling ZIndex means the popups must be in a separate layer above all else. It also allows us to support multiple widgets by drawing Canvases in multiple places. Finally, and this is the part most used, we haveTooltip.Trigger
which we put inside any element that we want a popup tip on.Sample Usage:
Demo: