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.

view_code_in_playground: Use tippy for tooltip.

Aman Agrawalb783cb468bf8
diff --git a/static/js/rendered_markdown.js b/static/js/rendered_markdown.js
index 8d3ee5ac5f8..028cabc6540 100644
--- a/static/js/rendered_markdown.js
+++ b/static/js/rendered_markdown.js
@@ -218,7 +218,7 @@ export const update_elements = (content) => {
} else {
view_in_playground_button.attr("aria-haspopup", "true");
}
- view_in_playground_button.attr("title", title);
+ view_in_playground_button.attr("data-tippy-content", title);
view_in_playground_button.attr("aria-label", title);
}
}
diff --git a/static/templates/view_code_in_playground.hbs b/static/templates/view_code_in_playground.hbs
index 1143670760c..c7c250c5af4 100644
--- a/static/templates/view_code_in_playground.hbs
+++ b/static/templates/view_code_in_playground.hbs
@@ -1,2 +1,2 @@
{{! Display the "view code in playground" option for code blocks}}
-<a target="_blank" rel="noopener noreferrer" class="code_external_link" data-toggle="tooltip"><i class="fa fa-external-link"></i></a>
+<a target="_blank" rel="noopener noreferrer" class="tippy-zulip-tooltip code_external_link"><i class="fa fa-external-link"></i></a>