From c3a59e895bf6d5e173ce48515d138cf77276b5d2 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 21 Jan 2021 13:59:49 +0100 Subject: [PATCH] wip #4219 @0:10 --- js/libs/fluidbook/fluidbook.tooltip.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/libs/fluidbook/fluidbook.tooltip.js b/js/libs/fluidbook/fluidbook.tooltip.js index f81227b6..a53a7bb9 100644 --- a/js/libs/fluidbook/fluidbook.tooltip.js +++ b/js/libs/fluidbook/fluidbook.tooltip.js @@ -173,6 +173,14 @@ FluidbookTooltip.prototype = { css.maxWidth = 250; if(css.backgroundColor) { t.get(0).style.setProperty('--background-color', css.backgroundColor); + }else{ + css.backgroundColor=''; + t.get(0).style.setProperty('--background-color', null); + } + if(css.color){ + + }else{ + css.color=''; } t.css(css).html(text).show(); -- 2.39.5