chromaui / chromatic-cli

Chromatic CLI: `npx chromatic`
https://www.chromatic.com/docs/cli
MIT License
289 stars 70 forks source link

[Question] Chromatic UI review to ignore tag comments #696

Open dgonzalezr opened 1 year ago

dgonzalezr commented 1 year ago

Question

We use lit-HTML on our storybook stories, unfortunately whenever the storybook gets compiled, lit will add a tag comment with an identifier on the SB stories. Is there a way to tell chromatic to ignore them? Because they are seen as changes on multiple SB stories that are not related to the changes in the matter 😞

CleanShot 2022-12-12 at 19 21 38

winkerVSbecks commented 6 months ago

You can ignore certain DOM elements: https://www.chromatic.com/docs/ignoring-elements/#ignore-dom-elements

But Chromatic only flags changes if there are visual changes in snapshot. The DOM diff should not trigger a change is the story doesn't change visually.