fix(walkthrough): drop info tint from disabled Generate button
The status-info classes were winning over muted disabled styles, so the button still looked actionable when no model was selected. Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
This commit is contained in:
co-authored by
Serhii Dziupin
parent
5c6eee331e
commit
bc24b8a836
@@ -622,10 +622,9 @@ export const WalkthroughView = ({ directory }: WalkthroughViewProps) => {
|
|||||||
type="button"
|
type="button"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className={cn(
|
className={generateDisabled
|
||||||
WALKTHROUGH_ACTION_CLASS,
|
? 'border-border text-muted-foreground'
|
||||||
generateDisabled && 'border-border bg-transparent text-muted-foreground hover:bg-transparent hover:text-muted-foreground',
|
: WALKTHROUGH_ACTION_CLASS}
|
||||||
)}
|
|
||||||
disabled={generateDisabled}
|
disabled={generateDisabled}
|
||||||
aria-label={compactHeader
|
aria-label={compactHeader
|
||||||
? (view ? t('walkthrough.action.regenerate') : t('walkthrough.action.generate'))
|
? (view ? t('walkthrough.action.regenerate') : t('walkthrough.action.generate'))
|
||||||
|
|||||||
Reference in New Issue
Block a user