Page MenuHomePhabricator

Correct and Wrong answers are both highlighted in red color in Quiz extension multiple choice response
Closed, DeclinedPublic

Description

As stated here, the color for highlighting right and wrong are same.

If Incorrect answer is submitted in the following quiz, the quiz will then have 3 options highlighted in the same color.

<quiz>
{Question
|type="[]"}
+  Correct answer.
- Incorrect answer.
+ Correct answer.
- Incorrect answer.
</quiz>

More information is provided at the talk page for Quiz extension

Event Timeline

(Removing GSoC / Outreach-Programs-Projects project tags as this is not a project proposal)

@Mvolz Would it be fine to give green color to correct answer when incorrect answer is submitted ?

Yes, I think so, and the whole question would be highlighted red so it would still be obvious it was answered incorrectly.

Hmm, on second thought, I think maybe not. It's problematic to do that if there are multiple correct answers, and you need some way to indicate false negative:

Screenshot from 2017-06-05 12:11:53.png (353×450 px, 31 KB)

@Mvolz In multiple choice even if the correct answer that hasn't been selected is shown is green, it won't have tick inside input type.
Or we can take another approach by defining a new color scheme.

This is another one that's potentially configurable using T148624

The more I think about this, the more I think this is the correct behaviour.

If a correct answer is NOT selected, then it should be red because it is INCORRECT, having not been selected.