mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
fix(site): add chromatic ignore to shimmer component (#22439)
The shimmer component has an infinitely repeating animation that causes Chromatic snapshot diffs on every run. Adding `data-chromatic="ignore"` to prevent false positives, consistent with how other animated components in the codebase handle this (e.g. `Spinner`, `Alert`, `SyntaxHighlighter`). Co-authored-by: Coder <coder@users.noreply.github.com>
This commit is contained in:
@@ -48,6 +48,7 @@ const ShimmerComponent = ({
|
||||
return (
|
||||
<MotionConfig reducedMotion="user">
|
||||
<MotionComponent
|
||||
data-chromatic="ignore"
|
||||
animate={{ backgroundPosition: "0% center" }}
|
||||
className={cn(
|
||||
"relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent",
|
||||
|
||||
Reference in New Issue
Block a user