Skip to content

Commit 8e3a0a5

Browse files
committed
No longer ignore images in Chromatic in feature cards
1 parent a39ace3 commit 8e3a0a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dotcom-rendering/src/components/CardPicture.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,13 @@ export const CardPicture = ({
268268
src={fallbackSource.lowResUrl}
269269
css={[block, isCircular && circularStyles]}
270270
loading={loading}
271-
data-chromatic="ignore"
271+
/**
272+
* Feature cards typically have content overlaid on the image. If we ignore the image,
273+
* this content will also be ignored in Chromatic snapshots.
274+
*/
275+
data-chromatic={
276+
imageSize.startsWith('feature') ? undefined : 'ignore'
277+
}
272278
/>
273279
</picture>
274280
);

0 commit comments

Comments
 (0)