We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39ace3 commit 8e3a0a5Copy full SHA for 8e3a0a5
dotcom-rendering/src/components/CardPicture.tsx
@@ -268,7 +268,13 @@ export const CardPicture = ({
268
src={fallbackSource.lowResUrl}
269
css={[block, isCircular && circularStyles]}
270
loading={loading}
271
- data-chromatic="ignore"
+ /**
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
+ }
278
/>
279
</picture>
280
);
0 commit comments