From a83fe933fe8cfc7f54eb831c731a9c8710648730 Mon Sep 17 00:00:00 2001 From: arimieandreea Date: Fri, 13 Feb 2026 15:04:48 +0200 Subject: [PATCH] fix(match): overwrite mui default colors to reflect correctness PD-5523 --- packages/match/src/answer-grid.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/match/src/answer-grid.jsx b/packages/match/src/answer-grid.jsx index eb6cff40c3..66477113cd 100644 --- a/packages/match/src/answer-grid.jsx +++ b/packages/match/src/answer-grid.jsx @@ -159,6 +159,16 @@ export class AnswerGrid extends React.Component { '&:hover': { color: disabled ? color.disabled() : color.primaryLight(), }, + '&.Mui-disabled': { + color: `${(showCorrect && rowItem === true) || + (evaluate && this.answerIsCorrect(row.id, rowItem, answerIndex)) + ? color.correct() : + evaluate && this.answerIsIncorrect(row.id, rowItem, answerIndex) + ? color.incorrect() : + rowItem === true && !evaluate + ? color.primary() : + color.disabled()}`, + }, }} disabled={disabled} onChange={this.onRowValueChange(row.id, answerIndex)}