Open PrinceJohn opened 3 months ago
@PrinceJohn Thanks for reporting! As a workaround you can add the following to Button.stories.ts
:
const meta: Meta<ButtonComponent> = {
title: 'Example/Button',
component: ButtonComponent,
+ parameters: { docs: { story: { inline: false } } },
...
}
This iframes the stories, which has its own set of tradeoffs. We are working on a real fix as part of #26654
Describe the bug
Custom backgrounds set via the parameters object of a story does not apply to stories that are written in the MDX format. This was previously working in Storybook 7, but in Storybook 8 backgrounds only applies to canvas and auto docs pages.
Example code:
Reproduction link
https://stackblitz.com/edit/github-5tcfvt?file=src%2Fstories%2Fbutton.mdx
Reproduction steps
System
Additional context
No response