Skip to content

Commit

Permalink
fix: var fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dillionverma committed Jul 23, 2024
1 parent 4ebc3d7 commit 6c7caed
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions registry/components/magicui/ripple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ const Ripple = React.memo(function Ripple({

return (
<div
key={i}
className={`absolute animate-ripple rounded-full bg-foreground/25 shadow-xl border [--i:${i}]`}
style={
{
width: `${size}px`,
height: `${size}px`,
opacity: opacity,
animationDelay: animationDelay,
borderStyle: borderStyle,
borderWidth: "1px",
borderColor: `rgba(var(--foreground-rgb), ${borderOpacity / 100})`,
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%) scale(1)',
} as CSSProperties
}
/>
key={i}
className={`absolute animate-ripple rounded-full bg-foreground/25 shadow-xl border [--i:${i}]`}
style={
{
width: `${size}px`,
height: `${size}px`,
opacity,
animationDelay,
borderStyle,
borderWidth: "1px",
borderColor: `hsl(var(--foreground), ${borderOpacity / 100})`,
top: "50%",
left: "50%",
transform: "translate(-50%, -50%) scale(1)",
} as CSSProperties
}
/>
);
})}
</div>
Expand Down

0 comments on commit 6c7caed

Please sign in to comment.