A tooltip with a new approach (#2172)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-06-30 10:41:46 +07:00
committed by GitHub
parent c1a8b89855
commit 94ee6f5afe
56 changed files with 704 additions and 656 deletions
@@ -14,13 +14,16 @@
-->
<script lang="ts">
import { Asset, IntlString } from '@anticrm/platform'
import { Button, Tooltip } from '@anticrm/ui'
import { Button } from '@anticrm/ui'
export let icon: Asset
export let title: IntlString
export let text: string
</script>
<Tooltip label={title} direction="bottom" fill>
<Button {icon} kind="transparent" on:click={() => navigator.clipboard.writeText(text)} />
</Tooltip>
<Button
{icon}
kind={'transparent'}
showTooltip={{ label: title, direction: 'bottom' }}
on:click={() => navigator.clipboard.writeText(text)}
/>