Change tooltip inputChoice

This commit is contained in:
ernstmul
2024-12-30 05:56:24 +01:00
parent 347e40fd56
commit 1e9e11fd85
+10 -11
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { tooltip as tooltipAction } from '$lib/actions/tooltip';
import { Layout, Selector } from '@appwrite.io/pink-svelte';
import { Layout, Selector, Tooltip } from '@appwrite.io/pink-svelte';
import { Helper } from '.';
export let type: 'checkbox' | 'switchbox' = 'checkbox';
@@ -62,16 +62,15 @@
</span>
{/if}
{#if tooltip}
<button
type="button"
class="tooltip"
aria-label="variables info"
use:tooltipAction={{ content: tooltip }}>
<span
class="icon-info"
aria-hidden="true"
style="font-size: var(--icon-size-small)" />
</button>
<Tooltip>
<button type="button" class="tooltip" aria-label="variables info">
<span
class="icon-info"
aria-hidden="true"
style="font-size: var(--icon-size-small)" />
</button>
<p slot="tooltip">{tooltip}</p>
</Tooltip>
{/if}
</div>
{/if}