@khanacademy/perseus 1.3.0 → 1.3.1

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/dist/index.js CHANGED
@@ -27244,7 +27244,7 @@ function Choice(props) {
27244
27244
 
27245
27245
  const satCorrectChoice = apiOptions.satStyling && reviewMode && correct;
27246
27246
  const satIncorrectChecked = apiOptions.satStyling && reviewMode && !correct && checked;
27247
- const descriptionClassName = classNames__default["default"]("description", satCorrectChoice && "sat-correct", satIncorrectChecked && "sat-incorrect", aphrodite.css(!apiOptions.satStyling && styles$o.description, apiOptions.satStyling && styles$o.satDescription, satCorrectChoice && styles$o.satDescriptionCorrect, satCorrectChoice && checked && styles$o.satDescriptionCorrectChecked, satIncorrectChecked && styles$o.satDescriptionIncorrectChecked));
27247
+ const descriptionClassName = classNames__default["default"]("description", satCorrectChoice && "sat-correct", satIncorrectChecked && "sat-incorrect", aphrodite.css(!apiOptions.satStyling && styles$o.description, apiOptions.satStyling && styles$o.satDescription, satCorrectChoice && checked && styles$o.satDescriptionCorrectChecked, satIncorrectChecked && styles$o.satDescriptionIncorrectChecked));
27248
27248
  const rationaleClassName = classNames__default["default"]("perseus-radio-rationale-content", aphrodite.css(styles$o.rationale, !apiOptions.satStyling && styles$o.nonSatRationale, apiOptions.satStyling && styles$o.satReviewRationale)); // We want to show the choices as dimmed out when the choices are
27249
27249
  // disabled. However, we don't want to do this in the SAT product and
27250
27250
  // we also don't want to do this when we're in review mode in the
@@ -27258,12 +27258,12 @@ function Choice(props) {
27258
27258
  style: {
27259
27259
  dispay: "flex",
27260
27260
  flexDirection: "column"
27261
- }
27261
+ },
27262
+ className: descriptionClassName
27262
27263
  }, /*#__PURE__*/React__namespace.createElement("div", {
27263
27264
  style: {
27264
27265
  display: "flex",
27265
27266
  flexDirection: "row",
27266
- width: "100%",
27267
27267
  opacity: showDimmed ? 0.5 : 1.0
27268
27268
  }
27269
27269
  }, /*#__PURE__*/React__namespace.createElement("div", {
@@ -27282,7 +27282,8 @@ function Choice(props) {
27282
27282
  },
27283
27283
  onChange: () => {},
27284
27284
  disabled: disabled || apiOptions.staticRender || apiOptions.readOnly,
27285
- tabIndex: -1
27285
+ tabIndex: -1,
27286
+ className: ClassNames.RADIO.OPTION_CONTENT
27286
27287
  }), /*#__PURE__*/React__namespace.createElement("label", {
27287
27288
  htmlFor: choiceId
27288
27289
  }, a11yText, " \xA0 ", content)), /*#__PURE__*/React__namespace.createElement(Clickable__default["default"], {
@@ -27294,7 +27295,6 @@ function Choice(props) {
27294
27295
  crossedOut: false
27295
27296
  });
27296
27297
  },
27297
- className: descriptionClassName,
27298
27298
  disabled: disabled || apiOptions.staticRender || apiOptions.readOnly,
27299
27299
  style: {
27300
27300
  flex: 1
@@ -27427,16 +27427,12 @@ const styles$o = aphrodite.StyleSheet.create({
27427
27427
  boxSizing: "border-box",
27428
27428
  cursor: "pointer",
27429
27429
  marginLeft: 0,
27430
- padding: "17px 14px"
27431
- },
27432
- satDescriptionCorrect: {
27433
- color: satCorrectColor
27430
+ padding: "17px 14px 17px 0"
27434
27431
  },
27435
27432
  satDescriptionCorrectChecked: {
27436
27433
  backgroundColor: satCorrectBackgroundColor
27437
27434
  },
27438
27435
  satDescriptionIncorrectChecked: {
27439
- color: satIncorrectColor,
27440
27436
  backgroundColor: satIncorrectBackgroundColor
27441
27437
  },
27442
27438
  rationale: {
@@ -27786,8 +27782,7 @@ const styles$n = aphrodite.StyleSheet.create({
27786
27782
  }
27787
27783
  },
27788
27784
  radio: {
27789
- // Avoid centering
27790
- width: "100%"
27785
+ padding: 0
27791
27786
  },
27792
27787
  responsiveRadioContainer: {
27793
27788
  borderBottom: "1px solid ".concat(radioBorderColor$1),