Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update toggle-group.tsx

Tim Wilsonfa48ca6d3af0
diff --git a/packages/ui/src/toggle-group.tsx b/packages/ui/src/toggle-group.tsx
index eefe7c4323..be09606289 100644
--- a/packages/ui/src/toggle-group.tsx
+++ b/packages/ui/src/toggle-group.tsx
@@ -40,8 +40,7 @@ export function ToggleGroup({
{option.value === selected && (
<motion.div
layoutId={layoutGroupId}
- className="absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50"
- style={{ zIndex: -1 }}
+ className="absolute left-0 top-0 -z-[1] h-full w-full rounded-lg border border-gray-200 bg-gray-50"
transition={{ duration: 0.25 }}
/>
)}