Skip to content

Replace fomantic popup module with tippy.js #20428

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

Merged
merged 10 commits into from
Aug 9, 2022
Prev Previous commit
Next Next commit
add 100ms delay to tooltips
  • Loading branch information
silverwind committed Aug 5, 2022
commit c609fbaab654a33bfb5a15de0ed7f8a1c27200bc
7 changes: 6 additions & 1 deletion web_src/js/modules/tippy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ export function createTippy(target, opts = {}) {
export function initTooltip(el, props = {}) {
const content = el.getAttribute('data-content') || props.content;
if (!content) return null;
return createTippy(el, {content, role: 'tooltip', ...props});
return createTippy(el, {
content,
delay: 100,
role: 'tooltip',
...props,
});
}

export function showTemporaryTooltip(target, content) {
Expand Down