@khanacademy/wonder-blocks-clickable 8.3.0 → 8.3.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 +8 -0
- package/dist/components/clickable.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-clickable
|
|
2
2
|
|
|
3
|
+
## 8.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 66bae92: Swap out the `::after` pseudo-element for `::before` in `minTargetSizeStyles.minTargetSize` so that Cypress doesn't claim the element is obscured by another element. `::before` paints before the element's children, so when a test targets a descendant of a `Clickable` or `Link`, `elementFromPoint` resolves to that descendant rather than to the clickable ancestor. Pointer events on a pseudo-element still target the originating element, so the 24x24 target size guarantee is unchanged.
|
|
8
|
+
- Updated dependencies [66bae92]
|
|
9
|
+
- @khanacademy/wonder-blocks-styles@0.4.0
|
|
10
|
+
|
|
3
11
|
## 8.3.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -66,12 +66,12 @@ Partial<Omit<AriaProps, "aria-disabled">> & {
|
|
|
66
66
|
* Whether to disable the minimum 24x24 hit area applied to this
|
|
67
67
|
* component.
|
|
68
68
|
*
|
|
69
|
-
* By default a transparent `::
|
|
69
|
+
* By default a transparent `::before` pseudo-element expands the hit
|
|
70
70
|
* area to at least 24x24 to satisfy WCAG 2.5.8 (Target Size, Minimum).
|
|
71
71
|
*
|
|
72
72
|
* Set this to `true` when:
|
|
73
73
|
* - the expanded area would overlap an adjacent target
|
|
74
|
-
* - you need to implement a different '
|
|
74
|
+
* - you need to implement a different 'before' pseudo-element
|
|
75
75
|
*
|
|
76
76
|
* @defaultValue false
|
|
77
77
|
*/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Clickable component for Wonder-Blocks.",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "8.3.
|
|
6
|
+
"version": "8.3.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@khanacademy/wonder-blocks-core": "12.5.0",
|
|
24
|
-
"@khanacademy/wonder-blocks-styles": "0.
|
|
24
|
+
"@khanacademy/wonder-blocks-styles": "0.4.0",
|
|
25
25
|
"@khanacademy/wonder-blocks-tokens": "18.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|