Skip to content

Stop ignoring images in Chromatic in feature cards#15277

Merged
domlander merged 2 commits intomainfrom
doml/chromatic-feature-card
Feb 3, 2026
Merged

Stop ignoring images in Chromatic in feature cards#15277
domlander merged 2 commits intomainfrom
doml/chromatic-feature-card

Conversation

@domlander
Copy link
Contributor

What does this change?

Chromatic will no longer ignore feature cards. This change affects Chromatic only.

On standard cards, the image is separate from the card content: headline, kicker, footer, etc. When there are changes to this content on standard cards, for example, the kicker text changes to blue, Chromatic flags the change. On feature cards, the content is overlaid on top of the image. Since we ignore the area of the page covered by the image, the content is ignored too. There have been instances of accidental changes going out due to Chromatic ignoring the entire card. Not quite blue kickers, but you get the idea.

Images have often led to Chromatic false positives, which is why we have this data-attribute. If following this change we consistently receive false positives, we will reassess.

@domlander domlander self-assigned this Feb 2, 2026
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@domlander domlander added run_chromatic Runs chromatic when label is applied fronts + curation maintenance Departmental tracking: maintenance work, not a fix or a feature labels Feb 2, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Feb 2, 2026
@domlander domlander requested a review from abeddow91 February 2, 2026 16:58
@domlander domlander added the run_chromatic Runs chromatic when label is applied label Feb 3, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Feb 3, 2026
@domlander
Copy link
Contributor Author

I did a quick Chromatic run to check these changes: https://www.chromatic.com/build?appId=63e251470cfbe61776b0ef19&number=14610

@domlander domlander merged commit 57bcd19 into main Feb 3, 2026
26 checks passed
@domlander domlander deleted the doml/chromatic-feature-card branch February 3, 2026 09:49
@gu-prout
Copy link

gu-prout bot commented Feb 3, 2026

Seen on PROD (merged by @domlander 6 minutes and 56 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fronts + curation maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants