Skip to content

Commit 6fec683

Browse files
committed
UI tweaks
1 parent 51672f2 commit 6fec683

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/QuizQuestion.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function QuizQuestion({ questionData, questionId, onNextQuestion }: QuizQ
5151
{shuffledAnswers.map((answer, index) => (
5252
<Box
5353
key={index}
54+
onClick={() => selectedAnswer === null && handleAnswerClick(index)}
5455
sx={{
5556
display: 'flex',
5657
alignItems: 'center',
@@ -63,6 +64,12 @@ export function QuizQuestion({ questionData, questionId, onNextQuestion }: QuizQ
6364
? '2px solid green'
6465
: '2px solid red'
6566
: '2px solid transparent',
67+
cursor: selectedAnswer === null ? 'pointer' : 'default',
68+
'&:hover': selectedAnswer === null
69+
? {
70+
backgroundColor: 'action.hover',
71+
}
72+
: {},
6673
}}
6774
>
6875
<Button

0 commit comments

Comments
 (0)