Skip to content

Commit 515bbf5

Browse files
committed
Allow actionIcon has keys for tooltip
Signed-off-by: Denis Bykhov <[email protected]>
1 parent 3e835e0 commit 515bbf5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: packages/ui/src/components/ActionIcon.svelte

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
// limitations under the License.
1414
-->
1515
<script lang="ts">
16-
import type { IntlString, Asset } from '@hcengineering/platform'
17-
import type { AnySvelteComponent, TooltipAlignment } from '../types'
16+
import type { Asset, IntlString } from '@hcengineering/platform'
1817
import { ComponentType } from 'svelte'
18+
import type { AnySvelteComponent, TooltipAlignment } from '../types'
1919
20-
import Icon from './Icon.svelte'
2120
import { tooltip } from '../tooltips'
21+
import Icon from './Icon.svelte'
2222
2323
export let label: IntlString = '' as IntlString
2424
export let labelProps: any = undefined
@@ -29,11 +29,12 @@
2929
export let action: (ev: MouseEvent) => Promise<void> | void = async () => {}
3030
export let invisible: boolean = false
3131
export let disabled: boolean = false
32+
export let keys: string[] | undefined = undefined
3233
</script>
3334

3435
<button
3536
class="button {size}"
36-
use:tooltip={{ label, direction, props: labelProps }}
37+
use:tooltip={{ label, direction, props: labelProps, keys }}
3738
tabindex="0"
3839
on:click|stopPropagation|preventDefault={action}
3940
on:contextmenu

0 commit comments

Comments
 (0)