mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
refactor(tooltip-definition): use class name directive
This commit is contained in:
parent
72ac7192ae
commit
d80ba5ebe5
1 changed files with 5 additions and 2 deletions
|
@ -51,8 +51,11 @@
|
||||||
class:bx--tooltip__trigger--definition="{true}"
|
class:bx--tooltip__trigger--definition="{true}"
|
||||||
class:bx--tooltip--hidden="{!visible}"
|
class:bx--tooltip--hidden="{!visible}"
|
||||||
class:bx--tooltip--visible="{visible}"
|
class:bx--tooltip--visible="{visible}"
|
||||||
class="{direction && `bx--tooltip--${direction}`}
|
class:bx--tooltip--top="{direction === 'top'}"
|
||||||
{align && `bx--tooltip--align-${align}`}"
|
class:bx--tooltip--bottom="{direction === 'bottom'}"
|
||||||
|
class:bx--tooltip--align-start="{align === 'start'}"
|
||||||
|
class:bx--tooltip--align-center="{align === 'center'}"
|
||||||
|
class:bx--tooltip--align-end="{align === 'end'}"
|
||||||
on:click
|
on:click
|
||||||
on:mouseover
|
on:mouseover
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue