From 79c8783fdb183f2d1f37192aa072e2da00251d14 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 28 Nov 2020 15:17:50 +0100 Subject: [PATCH] Fix tooltip still existing in viewport after hiding them --- src/styles/components/base/tooltip.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/styles/components/base/tooltip.scss b/src/styles/components/base/tooltip.scss index 46e876a9..4ecfcdf9 100644 --- a/src/styles/components/base/tooltip.scss +++ b/src/styles/components/base/tooltip.scss @@ -1,5 +1,5 @@ .tooltip { - display: block !important; + visibility: collapse; z-index: 10000; font-size: 0.8em; text-align: center; @@ -17,7 +17,7 @@ &-arrow { opacity: 0; content: ''; - display: block; + visibility: collapse; position: absolute; transition: opacity $transition; z-index: 10000; @@ -35,6 +35,7 @@ &.visible, &-arrow.visible { opacity: 1; + visibility: visible; } &[x-placement^="top"] {