You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have an element in my UI that i wrap with a span that has the data-chromatic=ignore attribute so that I don't get diffs on it since that value can change daily (it displays a date). The problem is, since this date can change, so can the width of the element, causing Chromatic to flag it as a diff. According to chromatic docs, this is intended functionality:
It’s important to ensure the calculated bounding rectangle fully covers the changing content and maintains the exact dimensions as the baseline (e.g., width, height, and relative positioning). If the dimensions change, Chromatic will capture the incoming changes.
This is pretty frustrating to deal with. There has to be a better way to handle ignoring elements of varying widths.
The text was updated successfully, but these errors were encountered:
we run this this too. we worked around it by making the element wider (e.g. 100% of parent element) so the text length change does not impact element width
Describe the bug
I have an element in my UI that i wrap with a span that has the
data-chromatic=ignore
attribute so that I don't get diffs on it since that value can change daily (it displays a date). The problem is, since this date can change, so can the width of the element, causing Chromatic to flag it as a diff. According to chromatic docs, this is intended functionality:This is pretty frustrating to deal with. There has to be a better way to handle ignoring elements of varying widths.
The text was updated successfully, but these errors were encountered: