@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 +6 -0
- package/dist/es/index.css +1 -1
- package/dist/es/index.js +5 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/articles.less +6 -1
- package/src/widget-container.jsx +4 -0
- package/src/widgets/__stories__/definition.stories.jsx +27 -1
- package/src/widgets/__tests__/__snapshots__/definition_test.js.snap +2 -2
package/CHANGELOG.md
CHANGED
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);
|