diff --git a/src/pages/PerformanceDomainPracticePage.tsx b/src/pages/PerformanceDomainPracticePage.tsx index 07fb32c..caed628 100644 --- a/src/pages/PerformanceDomainPracticePage.tsx +++ b/src/pages/PerformanceDomainPracticePage.tsx @@ -328,6 +328,7 @@ export default function PerformanceDomainPracticePage() { const expectedGoalDone = expectedGoalProgress.total > 0 && expectedGoalProgress.completed >= expectedGoalProgress.total const keyPointDone = keyPointProgress.total > 0 && keyPointProgress.completed >= keyPointProgress.total const domainDone = expectedGoalDone && keyPointDone + const shouldKeepDisabled = domainDone && !shouldHighlightCorrect && !isWrongSelected const optionDisabled = isAnswerShown || domainDone return ( @@ -341,7 +342,7 @@ export default function PerformanceDomainPracticePage() { 'relative flex h-[112px] flex-col gap-2 overflow-hidden rounded-xl border bg-white p-3 text-left shadow-sm transition-colors dark:bg-gray-800', 'border-gray-100 hover:border-indigo-200 hover:bg-indigo-50/40 dark:border-gray-700 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/20', optionDisabled && 'cursor-default hover:bg-white dark:hover:bg-gray-800', - domainDone && !isAnswerShown && 'bg-gray-50 opacity-55 dark:bg-gray-800/70', + shouldKeepDisabled && 'bg-gray-50 opacity-55 dark:bg-gray-800/70', shouldHighlightCorrect && 'border-emerald-400 bg-emerald-50 shadow-[inset_0_0_0_2px_rgba(52,211,153,0.65)] dark:border-emerald-500 dark:bg-emerald-950/30 dark:shadow-[inset_0_0_0_2px_rgba(16,185,129,0.45)]', isWrongSelected && @@ -352,7 +353,7 @@ export default function PerformanceDomainPracticePage() {