Skip to content

Commit

Permalink
Merge pull request #357 from PrestaShopCorp/356-storybookavatar-sourc…
Browse files Browse the repository at this point in the history
…e-static-images-to-prevent-rerunning-chromatic-ui-tests-on-github

docs: [Avatar-Storybook] - fix #356
  • Loading branch information
mattgoud authored Jul 5, 2024
2 parents 144ee04 + cf08366 commit 74edc5b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/components/avatar/stories/avatar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
size: 'medium',
type: 'initials',
icon: 'home',
src: 'https://picsum.photos/200',
src: 'https://picsum.photos/id/823/200',
alt: 'puik-avatar-alt',
firstName: 'Presta',
lastName: 'Shop',
Expand Down Expand Up @@ -246,22 +246,22 @@ const SizesTemplate: StoryFn = (args: Args) => ({
{
type: 'photo',
size: 'small',
src: 'https://picsum.photos/200'
src: 'https://picsum.photos/id/823/200'
},
{
type: 'photo',
size: 'medium',
src: 'https://picsum.photos/200'
src: 'https://picsum.photos/id/823/200'
},
{
type: 'photo',
size: 'large',
src: 'https://picsum.photos/200'
src: 'https://picsum.photos/id/823/200'
},
{
type: 'photo',
size: 'jumbo',
src: 'https://picsum.photos/200'
src: 'https://picsum.photos/id/823/200'
}
]);
return { avatars, args };
Expand Down Expand Up @@ -410,7 +410,7 @@ export const Types = {
</div>
<!-- type photo-->
<div class="puik-avatar puik-avatar--medium puik-avatar--photo puik-avatar--primary">
<img src="https://picsum.photos/200" alt="puik-avatar-alt">
<img src="https://picsum.photos/id/823/200" alt="puik-avatar-alt">
</div>
`,
language: 'html'
Expand Down Expand Up @@ -457,7 +457,7 @@ NB: values of {$iconFontSize} to apply depending on the prop size:
</div>
<!-- photo type -->
<div class="puik-avatar puik-avatar--{$size} puik-avatar--photo puik-avatar--primary">
<img src="https://picsum.photos/200" alt="puik-avatar-alt">
<img src="https://picsum.photos/id/823/200" alt="puik-avatar-alt">
</div>
`,
language: 'html'
Expand Down

0 comments on commit 74edc5b

Please sign in to comment.