Skip to content

Commit

Permalink
feat: improve stories
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioCastigliano committed Jan 31, 2024
1 parent e535d4d commit 4cc5804
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/container/sticky-bar/sticky-bar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ const DefaultTemplate = ({
disableAnimation,
...args
}: Args): TemplateResult => html`
<sbb-container ${sbbSpread(args)} color=${containerColor}>
<sbb-container
${sbbSpread(args)}
color=${containerColor}
style=${isChromatic() ? 'max-height: 400px; overflow-y: scroll;' : nothing}
>
${containerContent('Example title', containerColor)}
${containerContent('Another one', containerColor)}
${containerContent('And another one', containerColor)}
Expand Down Expand Up @@ -153,7 +157,11 @@ const WithContentAfterTemplate = ({
disableAnimation,
...args
}: Args): TemplateResult => html`
<sbb-container ${sbbSpread(args)} color=${containerColor}>
<sbb-container
${sbbSpread(args)}
color=${containerColor}
style=${isChromatic() ? 'max-height: 400px; overflow-y: scroll;' : nothing}
>
${containerContent('Example title', containerColor)}
${containerContent('Another one', containerColor)}
${containerContent('And another one', containerColor)}
Expand Down

0 comments on commit 4cc5804

Please sign in to comment.