Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose_control_buttons: Convert titles to tooltips.

Aman Agrawal1a525be3a32c
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 58cf81f7731..2347af74d5d 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -61,4 +61,14 @@ export function initialize() {
// that when the reaction is hidden, tooltip hides as well.
appendTo: (reference) => reference,
});
+
+ delegate("body", {
+ target: ".compose_control_button",
+ content: (reference) => reference.getAttribute("title"),
+ placement: "top",
+ // Add some additional delay when they open
+ // so that regular users don't have to see
+ // them unless they want to.
+ delay: [300, 20],
+ });
}