Use AbsTooltip

This commit is contained in:
Adria Navarro 2024-05-30 10:07:17 +02:00
parent a289ef31d1
commit 8b22beb0a2
1 changed files with 12 additions and 11 deletions

View File

@ -3,7 +3,7 @@
let dispatch = createEventDispatcher()
import { ActionButton } from "@budibase/bbui"
import { ActionButton, AbsTooltip, TooltipType } from "@budibase/bbui"
export let value
export let options
@ -12,16 +12,17 @@
<div class="permissionPicker">
{#each options as option}
<ActionButton
on:click={() => dispatch("click", option.value)}
{disabled}
size="S"
icon={option.icon}
quiet
selected={option.value === value}
noPadding
tooltip={option.tooltip}
/>
<AbsTooltip text={option.tooltip} type={TooltipType.Info}>
<ActionButton
on:click={() => dispatch("click", option.value)}
{disabled}
size="S"
icon={option.icon}
quiet
selected={option.value === value}
noPadding
/>
</AbsTooltip>
{/each}
</div>