Skip to content

Commit

Permalink
fix: chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Apr 18, 2024
1 parent 076ce0b commit 90c95bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const parameters = {
export const decorators: Decorator[] = [
(story, context: StoryContext) =>
isChromatic() && context.parameters.layout !== 'fullscreen'
? html`<div style="padding: 2rem"></div>`
? html`<div style="padding: 2rem">${story()}</div>`
: story(),
withBackgroundDecorator,
];
2 changes: 1 addition & 1 deletion src/components/autocomplete/autocomplete.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export const MixedSingleOptionWithOptionGroupNegative: StoryObj = {

const meta: Meta = {
decorators: [
(story) => (isChromatic() ? html` <div style="min-height: 100vh">${story()}</div>` : story()),
(story) => (isChromatic() ? html`<div style="min-height: 100vh">${story()}</div>` : story()),
withActions as Decorator,
],
parameters: {
Expand Down

0 comments on commit 90c95bd

Please sign in to comment.