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.

popover_menus: Add some comment documentation.

Tim Abbottc705b7d5dd86
diff --git a/static/js/popover_menus.js b/static/js/popover_menus.js
index cff942ccdf2..ce3eb974013 100644
--- a/static/js/popover_menus.js
+++ b/static/js/popover_menus.js
@@ -1,3 +1,7 @@
+/* Module for popovers that have been ported to the modern
+ TippyJS/Popper popover library from the legacy Bootstrap
+ popovers system in popovers.js. */
+
import $ from "jquery";
import {delegate} from "tippy.js";
@@ -19,6 +23,9 @@ const default_popover_props = {
allowHTML: true,
interactive: true,
hideOnClick: true,
+ /* The light-border TippyJS theme is a bit of a misnomer; it
+ is a popover styling similar to Bootstrap. We've also customized
+ its CSS to support Zulip's night theme. */
theme: "light-border",
touch: true,
};