@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/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);
|