// eslint-disable-next-line max-classes-per-file import { html, LitElement, css } from 'lit'; import '../src/ix-tooltip.js'; class FancyTooltip extends LitElement { static styles = css` :host { background: white; border: 1px solid gray; box-shadow: 0 0 6px black; display: block; padding: 4px; } `; render() { return html``; } } window.customElements.define('fancy-tooltip', FancyTooltip); export class IxTooltipTestHarness extends LitElement { protected createRenderRoot(): HTMLElement | ShadowRoot { return this; } handleFancyMouseOver(e: Event) { document.dispatchEvent( new CustomEvent('show-tooltip', { detail: { target: e.target, tooltip: html`Some fancy title Some fancy description in a paragraph Some fancy link`, }, }), ); } render() { return html` first link element second link element A more complicated tooltip `; } } window.customElements.define('ix-tooltip-test-harness', IxTooltipTestHarness);
Some fancy description in a paragraph