Skip to content

Commit

Permalink
style: improve visibility and update conditional classes for TextBlan…
Browse files Browse the repository at this point in the history
…k component
  • Loading branch information
typeWolffo committed Nov 5, 2024
1 parent e7b0760 commit c9808f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ export const TextBlank = ({
studentAnswer?.isCorrect && studentAnswer.isStudentAnswer;

const textBlankClasses = cn(
"bg-transparent border-dashed border-b mx-1.5 w-20 border-b-black focus:ring-0 focus:outline-none",
"bg-transparent border-dashed border-b mx-1.5 w-20 focus:ring-0 focus:outline-none text-primary-700 border-b-primary-700",
{
"border-b-success-500 text-success-500":
isQuiz && isCorrectAnswer && studentAnswer?.isStudentAnswer,
"border-b-error-500 text-error-500":
isQuiz && studentAnswer?.isCorrect && !studentAnswer?.isStudentAnswer,
},
}
);

const isDisabled =
Expand Down

0 comments on commit c9808f4

Please sign in to comment.