@khanacademy/perseus 1.3.1 → 1.3.3
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 +12 -0
- package/dist/es/index.css +12 -12
- package/dist/es/index.js +13 -3
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +12 -12
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/multi-items/__tests__/__snapshots__/multi-renderer_test.js.snap +10 -10
- package/src/styles/articles.less +6 -6
- package/src/widgets/__tests__/__snapshots__/group_test.jsx.snap +10 -10
- package/src/widgets/__tests__/__snapshots__/radio_test.jsx.snap +104 -104
- package/src/widgets/radio/choice.jsx +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 47d2afc0: Force radio text to be dark for contrast
|
|
8
|
+
|
|
9
|
+
## 1.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1454c80a: Change to shape/space Radio Choice's "cross out" button
|
|
14
|
+
|
|
3
15
|
## 1.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/es/index.css
CHANGED
|
@@ -1527,16 +1527,16 @@ body.mobile ul.inequalities-one-line-radios > li {
|
|
|
1527
1527
|
font-family: inherit;
|
|
1528
1528
|
font-size: 14px;
|
|
1529
1529
|
line-height: 1.25;
|
|
1530
|
-
color: #
|
|
1530
|
+
color: #21242C;
|
|
1531
1531
|
}
|
|
1532
1532
|
.framework-perseus:not(.perseus-article):not(.perseus-mobile) .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph {
|
|
1533
1533
|
font-family: inherit;
|
|
1534
1534
|
font-size: 14px;
|
|
1535
1535
|
line-height: 1.25;
|
|
1536
|
-
color: #
|
|
1536
|
+
color: #21242C;
|
|
1537
1537
|
}
|
|
1538
1538
|
.framework-perseus:not(.perseus-article):not(.perseus-mobile) .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex {
|
|
1539
|
-
color: #
|
|
1539
|
+
color: #21242C;
|
|
1540
1540
|
}
|
|
1541
1541
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile :not(blockquote) > div.paragraph,
|
|
1542
1542
|
.framework-perseus:not(.perseus-article).perseus-mobile :not(blockquote) > div.paragraph {
|
|
@@ -1696,18 +1696,18 @@ body.mobile ul.inequalities-one-line-radios > li {
|
|
|
1696
1696
|
font-family: inherit;
|
|
1697
1697
|
font-size: 16px;
|
|
1698
1698
|
line-height: 1.25;
|
|
1699
|
-
color: #
|
|
1699
|
+
color: #21242C;
|
|
1700
1700
|
}
|
|
1701
1701
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph,
|
|
1702
1702
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph {
|
|
1703
1703
|
font-family: inherit;
|
|
1704
1704
|
font-size: 16px;
|
|
1705
1705
|
line-height: 1.25;
|
|
1706
|
-
color: #
|
|
1706
|
+
color: #21242C;
|
|
1707
1707
|
}
|
|
1708
1708
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex,
|
|
1709
1709
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex {
|
|
1710
|
-
color: #
|
|
1710
|
+
color: #21242C;
|
|
1711
1711
|
}
|
|
1712
1712
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-image-caption .paragraph .paragraph,
|
|
1713
1713
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-image-caption .paragraph .paragraph {
|
|
@@ -1859,18 +1859,18 @@ body.mobile ul.inequalities-one-line-radios > li {
|
|
|
1859
1859
|
font-family: inherit;
|
|
1860
1860
|
font-size: 18px;
|
|
1861
1861
|
line-height: 1.25;
|
|
1862
|
-
color: #
|
|
1862
|
+
color: #21242C;
|
|
1863
1863
|
}
|
|
1864
1864
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph,
|
|
1865
1865
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph {
|
|
1866
1866
|
font-family: inherit;
|
|
1867
1867
|
font-size: 18px;
|
|
1868
1868
|
line-height: 1.25;
|
|
1869
|
-
color: #
|
|
1869
|
+
color: #21242C;
|
|
1870
1870
|
}
|
|
1871
1871
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex,
|
|
1872
1872
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex {
|
|
1873
|
-
color: #
|
|
1873
|
+
color: #21242C;
|
|
1874
1874
|
}
|
|
1875
1875
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-image-caption .paragraph .paragraph,
|
|
1876
1876
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-image-caption .paragraph .paragraph {
|
|
@@ -2022,18 +2022,18 @@ body.mobile ul.inequalities-one-line-radios > li {
|
|
|
2022
2022
|
font-family: inherit;
|
|
2023
2023
|
font-size: 20px;
|
|
2024
2024
|
line-height: 1.25;
|
|
2025
|
-
color: #
|
|
2025
|
+
color: #21242C;
|
|
2026
2026
|
}
|
|
2027
2027
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph,
|
|
2028
2028
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph {
|
|
2029
2029
|
font-family: inherit;
|
|
2030
2030
|
font-size: 20px;
|
|
2031
2031
|
line-height: 1.25;
|
|
2032
|
-
color: #
|
|
2032
|
+
color: #21242C;
|
|
2033
2033
|
}
|
|
2034
2034
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex,
|
|
2035
2035
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-radio-rationale-content .perseus-renderer > .paragraph .paragraph .katex {
|
|
2036
|
-
color: #
|
|
2036
|
+
color: #21242C;
|
|
2037
2037
|
}
|
|
2038
2038
|
.bibliotron-article.framework-perseus.perseus-article.perseus-mobile .perseus-image-caption .paragraph .paragraph,
|
|
2039
2039
|
.framework-perseus:not(.perseus-article).perseus-mobile .perseus-image-caption .paragraph .paragraph {
|
package/dist/es/index.js
CHANGED
|
@@ -27361,7 +27361,8 @@ function Choice(props) {
|
|
|
27361
27361
|
return /*#__PURE__*/React.createElement("div", {
|
|
27362
27362
|
style: {
|
|
27363
27363
|
dispay: "flex",
|
|
27364
|
-
flexDirection: "column"
|
|
27364
|
+
flexDirection: "column",
|
|
27365
|
+
color: Color.offBlack
|
|
27365
27366
|
},
|
|
27366
27367
|
className: descriptionClassName
|
|
27367
27368
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -27401,7 +27402,8 @@ function Choice(props) {
|
|
|
27401
27402
|
},
|
|
27402
27403
|
disabled: disabled || apiOptions.staticRender || apiOptions.readOnly,
|
|
27403
27404
|
style: {
|
|
27404
|
-
flex: 1
|
|
27405
|
+
flex: 1,
|
|
27406
|
+
color: Color.offBlack
|
|
27405
27407
|
},
|
|
27406
27408
|
ref: forwardedRef,
|
|
27407
27409
|
"aria-hidden": "true"
|
|
@@ -27496,7 +27498,15 @@ function Choice(props) {
|
|
|
27496
27498
|
return /*#__PURE__*/React.createElement(Clickable, {
|
|
27497
27499
|
onClick: open,
|
|
27498
27500
|
"aria-label": "Open menu for Choice ".concat(getChoiceLetter(pos)),
|
|
27499
|
-
disabled: apiOptions.staticRender
|
|
27501
|
+
disabled: apiOptions.staticRender,
|
|
27502
|
+
style: {
|
|
27503
|
+
alignSelf: "center",
|
|
27504
|
+
padding: "5px",
|
|
27505
|
+
display: "flex",
|
|
27506
|
+
justifyContent: "center",
|
|
27507
|
+
alignItems: "center",
|
|
27508
|
+
marginLeft: "10px"
|
|
27509
|
+
}
|
|
27500
27510
|
}, _ref4 => {
|
|
27501
27511
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
27502
27512
|
icon: ellipsisHorizontalIcon,
|