Key Takeaway
Claude Code can help triage a visual regression by tracing a failing browser screenshot to the component, locale or asset responsible. Give it two screenshots and a reproducible test with a fixed viewport. Review the cause and its effect on the page before accepting an updated baseline.
What makes the screenshots comparable?
Use identical browser settings, locale, viewport and fixture data. Let fonts and assets settle before capture. One mismatched font can shift every line, so compare the environment before editing a component.
How should the task be framed?
Ask for the smallest failing rectangle and the source file that controls it. Include the last passing commit if you have it. A precise prompt might name the mobile Indonesian navigation and require checking the wrapping of its longest label.
What should happen before a patch?
Reproduce the failure with the targeted test and inspect the browser output. Compare a second viewport to see whether the issue comes from a breakpoint or shared spacing. Document which other visible regions still match the baseline.
When is a new baseline justified?
Update the image when the design change was intended and the relevant behaviours still work. Show an example at the affected viewport and locale. Keep baseline updates focused so a reviewer can see exactly which visual change was accepted.
How should keyboard use be checked?
Repeat the problematic navigation from a keyboard and observe focus order and visibility. A visual adjustment to overflow can clip a focus ring. Record the element that gains focus after opening and closing the menu.
What should the reviewer receive?
Attach the before and after crops, targeted test output and affected component path. Keep the full screenshots available if the layout around the crop matters. A second reviewer should be able to reproduce the result from that evidence.

