From caf3f2a203aa57320b88c9360600be1d621d612c Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 24 Apr 2024 14:59:27 +0200 Subject: [PATCH] fix link stories not working in all renderers --- .../links/template/stories/decorator.stories.ts | 11 ++++++++++- code/addons/links/template/stories/linkto.stories.ts | 7 ++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/code/addons/links/template/stories/decorator.stories.ts b/code/addons/links/template/stories/decorator.stories.ts index 2149eb5dafa4..53a05f380e74 100644 --- a/code/addons/links/template/stories/decorator.stories.ts +++ b/code/addons/links/template/stories/decorator.stories.ts @@ -10,7 +10,16 @@ export default { }; export const Target = { - render: () => 'This is just a story to target with the links', + args: { + content: ` +
+ This is just a story to target with the links +
+ `, + }, + parameters: { + chromatic: { disable: true }, + }, }; export const KindAndStory = { diff --git a/code/addons/links/template/stories/linkto.stories.ts b/code/addons/links/template/stories/linkto.stories.ts index 13e549f75134..502509a8d5aa 100644 --- a/code/addons/links/template/stories/linkto.stories.ts +++ b/code/addons/links/template/stories/linkto.stories.ts @@ -13,7 +13,12 @@ export default { }; export const Target = { - render: () => 'This is just a story to target with the links', + args: { + label: 'This is just a story to target with the links', + }, + parameters: { + chromatic: { disable: true }, + }, }; export const Id = {