Skip to content

Open source CapCut alternative.

TypeScript

fix(site): darken the Cut audio play buttons on hover

David Le4392ba147ebb
diff --git a/site/src/cut/components/AudioPanel.tsx b/site/src/cut/components/AudioPanel.tsx
index d7e42076..bb79b446 100644
--- a/site/src/cut/components/AudioPanel.tsx
+++ b/site/src/cut/components/AudioPanel.tsx
@@ -381,7 +381,7 @@ function AudioRow({
type="button"
className={cn(
"grid size-8 shrink-0 place-items-center rounded-full text-foreground transition-colors",
- playing ? "bg-primary text-primary-foreground" : "bg-muted hover:bg-muted/70"
+ playing ? "bg-primary text-primary-foreground" : "bg-muted hover:bg-muted-foreground/20"
)}
title={playing ? "Pause" : "Play"}
aria-label={playing ? "Pause" : "Play"}
diff --git a/site/src/cut/components/VoicePicker.tsx b/site/src/cut/components/VoicePicker.tsx
index 90b3f39f..a71935e2 100644
--- a/site/src/cut/components/VoicePicker.tsx
+++ b/site/src/cut/components/VoicePicker.tsx
@@ -129,7 +129,7 @@ export function VoicePicker({
<div className="flex items-center gap-2">
<button
type="button"
- className="voice-sample grid size-8 shrink-0 place-items-center rounded-full bg-muted text-foreground transition-colors hover:bg-muted/70 disabled:opacity-40"
+ className="voice-sample grid size-8 shrink-0 place-items-center rounded-full bg-muted text-foreground transition-colors hover:bg-muted-foreground/20 disabled:opacity-40"
title={sampleTitle}
aria-label={sampleTitle}
disabled={signedOut || sampleOverride?.disabled === true}