]> _ Git - fluidbook-html5.git/commitdiff
wip #4219 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Jan 2021 12:59:49 +0000 (13:59 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Jan 2021 12:59:49 +0000 (13:59 +0100)
js/libs/fluidbook/fluidbook.tooltip.js

index f81227b6fc761a954c0ceaa022e67b0ac7664745..a53a7bb9a1c2978ba566ac0848226cc48c0f86a5 100644 (file)
@@ -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();