fix: replace text-secondary with text-muted-foreground in branching components
In Tailwind v4, text-secondary resolves to --color-secondary (#2e3140), a dark surface color — NOT --color-text-secondary (#848b9b). This made all secondary text invisible on dark backgrounds. The correct class is text-muted-foreground which maps to #848b9b. This matches the pattern used by existing FlowPilot components. Also reverts the unnecessary index.css variable bump from prior commit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export function BranchRevivalCard({ branch, evidenceSource }: BranchRevivalCardP
|
||||
<p className="text-xs text-primary mt-1">{branch.evidence_description}</p>
|
||||
)}
|
||||
{evidenceSource && (
|
||||
<p className="text-xs text-secondary mt-0.5">Evidence from: {evidenceSource.label}</p>
|
||||
<p className="text-xs text-muted-foreground mt-0.5">Evidence from: {evidenceSource.label}</p>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -79,7 +79,7 @@ export function HandoffModal({ onClose, onSubmit }: HandoffModalProps) {
|
||||
'flex-1 rounded-[5px] border px-3 py-2 text-sm font-medium transition-colors',
|
||||
intent === 'park'
|
||||
? 'border-accent bg-accent-dim text-accent-text'
|
||||
: 'border-default bg-transparent text-secondary hover:bg-elevated hover:text-primary'
|
||||
: 'border-default bg-transparent text-muted-foreground hover:bg-elevated hover:text-primary'
|
||||
)}
|
||||
>
|
||||
Park
|
||||
@@ -91,13 +91,13 @@ export function HandoffModal({ onClose, onSubmit }: HandoffModalProps) {
|
||||
'flex-1 rounded-[5px] border px-3 py-2 text-sm font-medium transition-colors',
|
||||
intent === 'escalate'
|
||||
? 'border-accent bg-accent-dim text-accent-text'
|
||||
: 'border-default bg-transparent text-secondary hover:bg-elevated hover:text-primary'
|
||||
: 'border-default bg-transparent text-muted-foreground hover:bg-elevated hover:text-primary'
|
||||
)}
|
||||
>
|
||||
Escalate
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-xs text-secondary">
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{intent === 'park'
|
||||
? 'Park this session to resume later or hand to another engineer.'
|
||||
: 'Escalate to a senior engineer with full context and branch history.'}
|
||||
@@ -148,7 +148,7 @@ export function HandoffModal({ onClose, onSubmit }: HandoffModalProps) {
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
disabled={isSubmitting}
|
||||
className="rounded-[5px] border border-default px-4 py-2 text-sm text-secondary hover:bg-elevated hover:text-primary transition-colors disabled:opacity-50"
|
||||
className="rounded-[5px] border border-default px-4 py-2 text-sm text-muted-foreground hover:bg-elevated hover:text-primary transition-colors disabled:opacity-50"
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
|
||||
@@ -130,7 +130,7 @@ export function ResolutionOutputPanel({ sessionId, className }: ResolutionOutput
|
||||
'flex items-center gap-1.5 px-3 py-2.5 text-xs font-medium transition-colors border-b-2 -mb-px',
|
||||
isActive
|
||||
? 'border-accent text-accent-text'
|
||||
: 'border-transparent text-secondary hover:text-primary hover:border-hover'
|
||||
: 'border-transparent text-muted-foreground hover:text-primary hover:border-hover'
|
||||
)}
|
||||
>
|
||||
<Icon size={13} />
|
||||
@@ -184,7 +184,7 @@ export function ResolutionOutputPanel({ sessionId, className }: ResolutionOutput
|
||||
type="button"
|
||||
onClick={handleEditToggle}
|
||||
disabled={isSaving}
|
||||
className="rounded-[5px] border border-default px-3 py-1.5 text-xs text-secondary hover:bg-elevated hover:text-primary transition-colors disabled:opacity-50"
|
||||
className="rounded-[5px] border border-default px-3 py-1.5 text-xs text-muted-foreground hover:bg-elevated hover:text-primary transition-colors disabled:opacity-50"
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
@@ -196,7 +196,7 @@ export function ResolutionOutputPanel({ sessionId, className }: ResolutionOutput
|
||||
onClick={handleEditToggle}
|
||||
disabled={!activeOutput}
|
||||
className={cn(
|
||||
'flex items-center gap-1.5 rounded-[5px] border border-default px-3 py-1.5 text-xs text-secondary',
|
||||
'flex items-center gap-1.5 rounded-[5px] border border-default px-3 py-1.5 text-xs text-muted-foreground',
|
||||
'hover:bg-elevated hover:text-primary transition-colors disabled:opacity-40'
|
||||
)}
|
||||
>
|
||||
@@ -211,7 +211,7 @@ export function ResolutionOutputPanel({ sessionId, className }: ResolutionOutput
|
||||
'flex items-center gap-1.5 rounded-[5px] border border-default px-3 py-1.5 text-xs transition-colors disabled:opacity-40',
|
||||
copied
|
||||
? 'border-success text-success'
|
||||
: 'text-secondary hover:bg-elevated hover:text-primary'
|
||||
: 'text-muted-foreground hover:bg-elevated hover:text-primary'
|
||||
)}
|
||||
>
|
||||
{copied ? <Check size={12} /> : <Copy size={12} />}
|
||||
@@ -225,7 +225,7 @@ export function ResolutionOutputPanel({ sessionId, className }: ResolutionOutput
|
||||
'flex items-center gap-1.5 rounded-[5px] border border-default px-3 py-1.5 text-xs transition-colors disabled:opacity-40',
|
||||
activeOutput?.status === 'pushed'
|
||||
? 'border-success text-success'
|
||||
: 'text-secondary hover:bg-elevated hover:text-primary'
|
||||
: 'text-muted-foreground hover:bg-elevated hover:text-primary'
|
||||
)}
|
||||
>
|
||||
<Send size={12} />
|
||||
|
||||
Reference in New Issue
Block a user