@khanacademy/perseus 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 1.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 859d3c28: Fixes styling of input-number when answer is incorrect in review mode
8
+
3
9
  ## 1.3.5
4
10
 
5
11
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -23246,12 +23246,12 @@ class InputNumber extends React.Component {
23246
23246
 
23247
23247
  var inputStyles = [styles$z.default, this.props.size === "small" ? styles$z.small : null, this.props.rightAlign ? styles$z.rightAlign : styles$z.leftAlign]; // Correct
23248
23248
 
23249
- if (rubric && correct && this.props.currentValue) {
23249
+ if (rubric && correct === true && this.props.currentValue) {
23250
23250
  inputStyles.push(styles$z.answerStateCorrect);
23251
23251
  } // Incorrect
23252
23252
 
23253
23253
 
23254
- if (rubric && !correct && this.props.currentValue) {
23254
+ if (rubric && correct === false && this.props.currentValue) {
23255
23255
  inputStyles.push(styles$z.answerStateIncorrect);
23256
23256
  } // Unanswered
23257
23257