@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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6272dfbe: Bugfix for definition prompt size in articles
8
+
3
9
  ## 2.0.0
4
10
 
5
11
  ### Major Changes
package/dist/es/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/es/index.js CHANGED
@@ -19221,7 +19221,11 @@ class WidgetContainer extends React.Component {
19221
19221
  var className = classNames({
19222
19222
  "perseus-widget-container": true,
19223
19223
  "widget-highlight": this.props.shouldHighlight,
19224
- "widget-nohighlight": !this.props.shouldHighlight
19224
+ "widget-nohighlight": !this.props.shouldHighlight,
19225
+ // HACK(matthewc): perseus-widget-container is setting a font-size
19226
+ // but we want the definition prompt to match the surrounding font
19227
+ // I'm sorry, but there's a time crunch
19228
+ "perseus-widget__definition": this.props.type === "definition"
19225
19229
  });
19226
19230
  var type = this.props.type;
19227
19231
  var WidgetType = getWidget(type);