@khanacademy/perseus 2.0.0 → 2.0.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.css CHANGED
@@ -1360,7 +1360,7 @@ body.mobile ul.inequalities-one-line-radios > li {
1360
1360
  margin: 0;
1361
1361
  max-width: none;
1362
1362
  }
1363
- .bibliotron-article.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-widget-container {
1363
+ .bibliotron-article.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-widget-container:not(.perseus-widget__definition) {
1364
1364
  font-size: 14px;
1365
1365
  line-height: 19.6px;
1366
1366
  }
package/dist/index.js CHANGED
@@ -19115,7 +19115,11 @@ class WidgetContainer extends React__namespace.Component {
19115
19115
  let className = classNames__default["default"]({
19116
19116
  "perseus-widget-container": true,
19117
19117
  "widget-highlight": this.props.shouldHighlight,
19118
- "widget-nohighlight": !this.props.shouldHighlight
19118
+ "widget-nohighlight": !this.props.shouldHighlight,
19119
+ // HACK(matthewc): perseus-widget-container is setting a font-size
19120
+ // but we want the definition prompt to match the surrounding font
19121
+ // I'm sorry, but there's a time crunch
19122
+ "perseus-widget__definition": this.props.type === "definition"
19119
19123
  });
19120
19124
  const type = this.props.type;
19121
19125
  const WidgetType = getWidget(type);