diff --git a/packages/demo/src/App.svelte b/packages/demo/src/App.svelte index e908467f..efdd5ee0 100644 --- a/packages/demo/src/App.svelte +++ b/packages/demo/src/App.svelte @@ -1,37 +1,39 @@ - +
+ + + {#if isTooltipVisible} +
+ {@html tooltip} +
+ {/if} +
+ + diff --git a/packages/lib/src/form-fields/buttonTooltipAttribute.wc.svelte b/packages/lib/src/form-fields/buttonTooltipAttribute.wc.svelte new file mode 100644 index 00000000..58a2b99d --- /dev/null +++ b/packages/lib/src/form-fields/buttonTooltipAttribute.wc.svelte @@ -0,0 +1,26 @@ + { + return class extends customElementConstructor { + static formAssociated = true; + + constructor() { + super(); + this.attachedInternals = this.attachInternals(); + } + }; + } + }} +/> + + + + \ No newline at end of file