@khanacademy/wonder-blocks-cell 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,13 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-cell
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 166ecc97: Use `aria-disabled` instead of disabled, fix focused + disabled styles.
|
|
8
|
+
- Updated dependencies [166ecc97]
|
|
9
|
+
- @khanacademy/wonder-blocks-clickable@2.2.4
|
|
10
|
+
|
|
3
11
|
## 2.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
package/dist/es/index.js
CHANGED
|
@@ -255,7 +255,10 @@ const styles$1 = StyleSheet.create({
|
|
|
255
255
|
background: fade(Color.blue, 0.24)
|
|
256
256
|
},
|
|
257
257
|
disabled: {
|
|
258
|
-
color: Color.offBlack32
|
|
258
|
+
color: Color.offBlack32,
|
|
259
|
+
":hover": {
|
|
260
|
+
cursor: "not-allowed"
|
|
261
|
+
}
|
|
259
262
|
},
|
|
260
263
|
accessoryActive: {
|
|
261
264
|
color: Color.blue
|
package/dist/index.js
CHANGED
|
@@ -420,7 +420,10 @@ const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({
|
|
|
420
420
|
background: Object(_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4__["fade"])(_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.blue, 0.24)
|
|
421
421
|
},
|
|
422
422
|
disabled: {
|
|
423
|
-
color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.offBlack32
|
|
423
|
+
color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.offBlack32,
|
|
424
|
+
":hover": {
|
|
425
|
+
cursor: "not-allowed"
|
|
426
|
+
}
|
|
424
427
|
},
|
|
425
428
|
accessoryActive: {
|
|
426
429
|
color: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_4___default.a.blue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-cell",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime": "^7.16.3",
|
|
17
|
-
"@khanacademy/wonder-blocks-clickable": "^2.2.
|
|
17
|
+
"@khanacademy/wonder-blocks-clickable": "^2.2.4",
|
|
18
18
|
"@khanacademy/wonder-blocks-color": "^1.1.20",
|
|
19
19
|
"@khanacademy/wonder-blocks-core": "^4.2.1",
|
|
20
20
|
"@khanacademy/wonder-blocks-layout": "^1.4.7",
|
|
@@ -74,7 +74,10 @@ describe("CellCore", () => {
|
|
|
74
74
|
);
|
|
75
75
|
|
|
76
76
|
// Assert
|
|
77
|
-
expect(screen.getByRole("button")).
|
|
77
|
+
expect(screen.getByRole("button")).toHaveAttribute(
|
|
78
|
+
"aria-disabled",
|
|
79
|
+
"true",
|
|
80
|
+
);
|
|
78
81
|
});
|
|
79
82
|
|
|
80
83
|
it("should add aria-current if active is set", () => {
|