From 63448276cc14a494e68aefe4833d4fafeb7489ee Mon Sep 17 00:00:00 2001 From: Molkobain Date: Sun, 24 Oct 2021 11:12:07 +0200 Subject: [PATCH] Tooltips: Add possibility to define theme through meta-data --- js/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/utils.js b/js/utils.js index 65dfbf8ce..8bb7bac35 100644 --- a/js/utils.js +++ b/js/utils.js @@ -868,6 +868,8 @@ const CombodoTooltip = { (typeof sHideDelay === 'undefined') ? null : parseInt(sHideDelay), ]; + oOptions['theme'] = oElem.attr('data-tooltip-theme') ?? ''; + tippy(oElem[0], oOptions); // Mark tooltip as instantiated