Skip to content

Commit

Permalink
change delay to tailwind classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Sep 15, 2023
1 parent 52fd4b7 commit abbcdfb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions report-viewer/src/components/ToolTipComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="group relative inline-block">
<slot></slot>
<div
class="delay-visible invisible absolute z-10 rounded-md px-1 text-center text-white group-hover:visible"
class="invisible absolute z-10 rounded-md px-1 text-center text-white delay-0 group-hover:visible group-hover:delay-200"
:style="tooltipPosition"
>
<slot name="tooltip"></slot>
Expand Down Expand Up @@ -71,13 +71,3 @@ const arrowStyle = computed(() => {
return style
})
</script>

<style scoped>
.delay-visible {
transition-delay: 0s;
}
*:hover > .delay-visible {
transition-delay: 0.2s;
}
</style>

0 comments on commit abbcdfb

Please sign in to comment.