@@ -11,6 +11,7 @@ import {
1111 X ,
1212} from "lucide-react" ;
1313import { motion } from "framer-motion" ;
14+ import { useTheme } from "next-themes" ;
1415import YAML from "yaml" ;
1516import { CodeBlock } from "@/components/ui/code-block" ;
1617
@@ -124,6 +125,7 @@ export default function ValuesWizardModal({
124125 selectedVersion,
125126 imageTagMap,
126127} : ValuesWizardModalProps ) {
128+ const { resolvedTheme } = useTheme ( ) ;
127129 const [ wizardStep , setWizardStep ] = useState < WizardStepId > ( 1 ) ;
128130 const [ uploadedFileName , setUploadedFileName ] = useState < string | null > ( null ) ;
129131 const [ uploadedValuesText , setUploadedValuesText ] = useState < string > ( "" ) ;
@@ -489,11 +491,10 @@ export default function ValuesWizardModal({
489491 </ div >
490492 < div className = "flex justify-between text-[10px] uppercase tracking-[0.35em] text-muted-foreground" >
491493 { WIZARD_STEPS . map ( ( step ) => {
492- const isLit = wizardStep >= step . id ;
493494 return (
494495 < span
495496 key = { step . id }
496- className = { ` flex-1 text-center ${ isLit ? "text-success-foreground" : "" } ` }
497+ className = " flex-1 text-center"
497498 >
498499 { step . label }
499500 </ span >
@@ -533,7 +534,9 @@ export default function ValuesWizardModal({
533534 disabled = { wizardProcessing }
534535 whileHover = { ! wizardProcessing ? { scale : 1.02 } : { } }
535536 whileTap = { ! wizardProcessing ? { scale : 0.98 } : { } }
536- className = "inline-flex items-center gap-2 rounded-full border border-success/60 bg-success/20 px-4 py-2 text-xs font-semibold uppercase tracking-[0.3em] text-success-foreground transition hover:border-success/80 hover:bg-success/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-success disabled:cursor-not-allowed disabled:opacity-60"
537+ className = { `inline-flex items-center gap-2 rounded-full border border-success/60 bg-success/20 px-4 py-2 text-xs font-semibold uppercase tracking-[0.3em] transition hover:border-success/80 hover:bg-success/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-success disabled:cursor-not-allowed disabled:opacity-60 ${
538+ resolvedTheme === "dark" ? "text-white" : "text-foreground"
539+ } `}
537540 >
538541 { wizardStep === 3 ? "Finish" : "Next" }
539542 </ motion . button >
0 commit comments