Repository navigation
feat(Tooltip, Popover): delay and animation - #358
Merged
Merged
Conversation
- `cTooltipDelay`, `cPopoverDelay`: ms or `{ show, hide }`, default `{ show: 150, hide: 0 }`, timing as before
- `show` from the request to the reveal, `visible` turns true at once as before; `hide` from the end of the trigger to the start of hiding, `visible` stays true until then
- `hide` for triggers only; Escape, `visible` set to false and a reference out of view hide at once; a trigger ended before the bubble appears drops it; hover or focus started again before it hides keeps it, a click starts `hide` again
- `cTooltipAnimation`, `cPopoverAnimation`, `animation` on `c-tooltip` and `c-popover`: `false` drops the fade and the 300 ms wait for it
- Behavior change: Escape before the bubble appears reaches the page, was swallowed; still drops the bubble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cTooltipDelay,cPopoverDelay: ms or{ show, hide }, default{ show: 150, hide: 0 }, timing as before.showruns from the request to the reveal;visibleturns true at once, as before.hideruns from the end of the trigger to the start of hiding;visiblestays true until then. Hover or focus that comes back inside it keeps the bubble and emits nothing; a click there startshideagain, like a click on a shown bubble.hidefor triggers only: Escape,visibleset to false and a reference out of view hide at once. A trigger ended before the bubble appears drops it. Settingvisibleto true insidehidedoes not keep the bubble, the value is already true. A host destroyed insidehidereports nofalse, as one destroyed while shown.cTooltipAnimation,cPopoverAnimation,animationonc-tooltipandc-popover:falsedrops the fade and the 300 ms wait for it.