Skip to content

Commit

Permalink
fix: chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Dec 11, 2023
1 parent 2da52a0 commit 4d6e60d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/notification/notification.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,11 @@ export const SlottedTitle: StoryObj = {
args: { ...basicArgs, 'title-content': undefined },
};

// We set the height of the div in Chromatic to avoid cropped snapshots
const meta: Meta = {
decorators: [
(story, context) =>
html`<div
style="padding: 2rem;display: flex;gap: var(--sbb-spacing-fixed-4x);flex-direction: column;${isChromatic()
? 'min-height: 1000px;'
: ''}"
style="padding: 2rem;display: flex;gap: var(--sbb-spacing-fixed-4x);flex-direction: column;"
>
${trigger(context.args)}
<div class="notification-container" style="display: flex; flex-direction: column;">
Expand Down

0 comments on commit 4d6e60d

Please sign in to comment.