diff --git a/packages/nimble-components/src/tooltip/index.ts b/packages/nimble-components/src/tooltip/index.ts index 4846e27fde..5b54168591 100644 --- a/packages/nimble-components/src/tooltip/index.ts +++ b/packages/nimble-components/src/tooltip/index.ts @@ -20,7 +20,7 @@ const nimbleTooltip = Tooltip.compose({ baseName: 'tooltip', baseClass: FoundationTooltip, template, - styles, + styles }); DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip()); \ No newline at end of file diff --git a/packages/nimble-components/src/tooltip/tests/tooltip.stories.ts b/packages/nimble-components/src/tooltip/tests/tooltip.stories.ts index e004f25b6c..769ceba912 100644 --- a/packages/nimble-components/src/tooltip/tests/tooltip.stories.ts +++ b/packages/nimble-components/src/tooltip/tests/tooltip.stories.ts @@ -33,7 +33,14 @@ const metadata: Meta = { render: createUserSelectedThemeStory(html` text - tooltip text + + ${x => x.tooltip} + `), args: { tooltip: 'Tooltip label', @@ -45,4 +52,4 @@ const metadata: Meta = { export default metadata; -export const tooltip: StoryObj = {}; // if checkbox changed to tooltip doesn't work +export const tooltip: StoryObj = {};