n8n/packages/editor-ui/src/components/WarningTooltip.vue
OlegIvaniv 30484a0615
fix(editor): Resolve vue 3 related console-warnings (#6779)
* fix(editor): Resolve vue 3 related console-warnings

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Use span as component wrapper instead of div

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Wrap popover component in span

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

---------

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
2023-07-28 16:59:06 +02:00

19 lines
359 B
Vue

<template>
<span>
<n8n-tooltip content=" " placement="top">
<template #content>
<slot />
</template>
<font-awesome-icon :class="$style['icon']" icon="exclamation-triangle"></font-awesome-icon>
</n8n-tooltip>
</span>
</template>
<style lang="scss" module>
.icon {
font-size: 14px;
height: 18px;
color: $warning-tooltip-color;
}
</style>