Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Add uniform LONG_DELAY class.
Karl Stolleyab1a8367f088
diff --git a/web/src/tippyjs.ts b/web/src/tippyjs.tsindex 9479af4c799..1edf8bb8d9e 100644--- a/web/src/tippyjs.ts+++ b/web/src/tippyjs.ts@@ -202,11 +202,11 @@ export function initialize(): void {});// Variant of .tippy-left-sidebar-tooltip configuration. Since- // this element doesn't have an always visible label, and- // thus hovering it is a way to find out what it does, give- // it the faster LONG_HOVER_DELAY.+ // some elements don't have an always visible label, and+ // thus hovering them is a way to find out what they do, give+ // them the shorter LONG_HOVER_DELAY.tippy.delegate("body", {- target: "#show-all-direct-messages",+ target: ".tippy-left-sidebar-tooltip-no-label-delay",placement: "right",delay: LONG_HOVER_DELAY,appendTo: () => document.body,diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbsindex b329958d80b..65fc27ec2fb 100644--- a/web/templates/left_sidebar.hbs+++ b/web/templates/left_sidebar.hbs@@ -150,10 +150,10 @@<i id="toggle-direct-messages-section-icon" class="zulip-icon zulip-icon-heading-triangle-right sidebar-heading-icon rotate-icon-down dm-tooltip-target zoom-in-hide" aria-hidden="true" tabindex="0" role="button"></i><h4 class="left-sidebar-title"><span class="dm-tooltip-target">{{t 'DIRECT MESSAGES' }}</span></h4><div class="left-sidebar-controls">- <span id="compose-new-direct-message" class="tippy-left-sidebar-tooltip" data-tooltip-template-id="new_direct_message_button_tooltip_template">+ <span id="compose-new-direct-message" class="tippy-left-sidebar-tooltip-no-label-delay" data-tooltip-template-id="new_direct_message_button_tooltip_template"><i class="left-sidebar-new-direct-message-icon zulip-icon zulip-icon-square-plus" aria-label="{{t 'New direct message' }}"></i></span>- <a id="show-all-direct-messages" href="#narrow/is/dm" data-tooltip-template-id="show-all-direct-messages-template">+ <a id="show-all-direct-messages" class="tippy-left-sidebar-tooltip-no-label-delay" href="#narrow/is/dm" data-tooltip-template-id="show-all-direct-messages-template"><i class="zulip-icon zulip-icon-all-messages" aria-label="{{t 'Direct message feed' }}"></i></a></div>