mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): multiple choice question feedback display (#57740)
This commit is contained in:
@@ -83,12 +83,13 @@ function MultipleChoiceQuestions({
|
||||
<div
|
||||
className={`video-quiz-option-label mcq-feedback ${isCorrect ? 'mcq-correct' : 'mcq-incorrect'}`}
|
||||
>
|
||||
{isCorrect
|
||||
? t('learn.quiz.correct-answer')
|
||||
: t('learn.quiz.incorrect-answer')}
|
||||
<p>
|
||||
{isCorrect
|
||||
? t('learn.quiz.correct-answer')
|
||||
: t('learn.quiz.incorrect-answer')}
|
||||
</p>
|
||||
{feedback && (
|
||||
<>
|
||||
<span> </span>
|
||||
<p>
|
||||
<PrismFormatted
|
||||
className={
|
||||
isCorrect
|
||||
@@ -99,7 +100,7 @@ function MultipleChoiceQuestions({
|
||||
useSpan
|
||||
noAria
|
||||
/>
|
||||
</>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -139,6 +139,7 @@ input:focus-visible + .video-quiz-input-visible {
|
||||
|
||||
.mcq-feedback {
|
||||
border-top: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mcq-prism-correct code {
|
||||
|
||||
Reference in New Issue
Block a user