diff --git a/packages/uui-popover-container/lib/popover-test-story.element.ts b/packages/uui-popover-container/lib/popover-test-story.element.ts new file mode 100644 index 000000000..0e1ce24e7 --- /dev/null +++ b/packages/uui-popover-container/lib/popover-test-story.element.ts @@ -0,0 +1,31 @@ +import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; +import { css, html, LitElement } from 'lit'; +/** + * @element popover-test-story + */ +@defineElement('popover-test-story') +export class UUIPopoverTestStoryElement extends LitElement { + render() { + return html` + open popover + +
+ Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repudiandae + quis eos doloribus dolore. Voluptate dolorum, natus, sit veritatis + impedit dolore enim odio excepturi ex nostrum veniam repellendus + obcaecati aspernatur dolorem. +
+
+ `; + } + + static styles = [css``]; +} + +declare global { + interface HTMLElementTagNameMap { + 'popover-test-story': UUIPopoverTestStoryElement; + } +} diff --git a/packages/uui-popover-container/lib/uui-popover-container.story.ts b/packages/uui-popover-container/lib/uui-popover-container.story.ts index 4c8092dad..9daa0ccf6 100644 --- a/packages/uui-popover-container/lib/uui-popover-container.story.ts +++ b/packages/uui-popover-container/lib/uui-popover-container.story.ts @@ -7,6 +7,8 @@ import type { UUIPopoverContainerElement } from './uui-popover-container.element import readme from '../README.md?raw'; import { html } from 'lit'; +import './popover-test-story.element'; + const meta: Meta = { id: 'uui-popover-container', title: 'Displays/Popover Container', @@ -19,6 +21,10 @@ const meta: Meta = { export default meta; type Story = StoryObj; +export const Test: Story = { + render: () => html``, +}; + export const Overview: Story = { play: async ({ canvasElement }) => { const button = canvasElement.querySelector('#popover-button');