From: Vincent Vanwaelscappel Date: Thu, 21 Jan 2021 12:59:49 +0000 (+0100) Subject: wip #4219 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c3a59e895bf6d5e173ce48515d138cf77276b5d2;p=fluidbook-html5.git wip #4219 @0:10 --- 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();