Skip to content

Commit

Permalink
fix: test changing card to article tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrost1 committed Jun 10, 2022
1 parent b1dceb0 commit a0c05f4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export const Card = ({
elevation === 'raised' && styles['card--raised'],
);
return (
<div className={componentClassName} {...other}>
<article className={componentClassName} {...other}>
{children}
</div>
</article>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/CardFooter/CardFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface Props {
export const CardFooter = ({ children, className, ...other }: Props) => {
const componentClassName = clsx(styles['card__footer'], className, {});
return (
<div className={componentClassName} {...other}>
<footer className={componentClassName} {...other}>
{children}
</div>
</footer>
);
};
40 changes: 20 additions & 20 deletions src/components/DragDrop/__snapshots__/DragDrop.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 1
</div>
</div>
</article>
</li>
<li
class="drag-drop__item"
Expand Down Expand Up @@ -101,15 +101,15 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 2
</div>
</div>
</article>
</li>
<li
class="drag-drop__item"
Expand Down Expand Up @@ -140,15 +140,15 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 3
</div>
</div>
</article>
</li>
<li
class="drag-drop__item"
Expand Down Expand Up @@ -179,15 +179,15 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 4
</div>
</div>
</article>
</li>
<li
class="drag-drop__item"
Expand Down Expand Up @@ -218,15 +218,15 @@ exports[`<DragDrop /> Default story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 5
</div>
</div>
</article>
</li>
</ol>
</div>
Expand Down Expand Up @@ -455,15 +455,15 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 1
</div>
</div>
</article>
</li>
<li
class="drag-drop__item drag-drop__item--hover"
Expand Down Expand Up @@ -494,15 +494,15 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 2
</div>
</div>
</article>
</li>
<li
class="drag-drop__item drag-drop__item--hover"
Expand Down Expand Up @@ -533,15 +533,15 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 3
</div>
</div>
</article>
</li>
<li
class="drag-drop__item drag-drop__item--hover"
Expand Down Expand Up @@ -572,15 +572,15 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 4
</div>
</div>
</article>
</li>
<li
class="drag-drop__item drag-drop__item--hover"
Expand Down Expand Up @@ -611,15 +611,15 @@ exports[`<DragDrop /> HoveredHandle story renders snapshot 1`] = `
/>
</svg>
</div>
<div
<article
class="card example-card card--raised"
>
<div
class="card__body"
>
Card 5
</div>
</div>
</article>
</li>
</ol>
</div>
Expand Down

0 comments on commit a0c05f4

Please sign in to comment.