@khanacademy/wonder-blocks-link 10.4.0 → 10.4.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @khanacademy/wonder-blocks-link@10.4.
|
|
2
|
+
> @khanacademy/wonder-blocks-link@10.4.1 build:css /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-link
|
|
3
3
|
> pnpm exec wonder-blocks-tokens .
|
|
4
4
|
|
|
5
5
|
CSS variables generated successfully in: /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-link/dist/css
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-link
|
|
2
2
|
|
|
3
|
+
## 10.4.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
|
+
- @khanacademy/wonder-blocks-clickable@8.3.1
|
|
11
|
+
|
|
3
12
|
## 10.4.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -24,7 +24,7 @@ type CommonProps = AriaProps & {
|
|
|
24
24
|
/**
|
|
25
25
|
* Whether to disable the minimum 24x24 hit area applied to this link.
|
|
26
26
|
*
|
|
27
|
-
* By default a transparent `::
|
|
27
|
+
* By default a transparent `::before` pseudo-element expands the link's hit
|
|
28
28
|
* area to at least 24x24 to satisfy WCAG 2.5.8 (Target Size, Minimum).
|
|
29
29
|
* Set this to `true` where the expanded area would overlap an adjacent
|
|
30
30
|
* target.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Link component for Wonder Blocks design system.",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "10.4.
|
|
6
|
+
"version": "10.4.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"./styles.css": "./dist/css/vars.css"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@khanacademy/wonder-blocks-clickable": "8.3.
|
|
31
|
+
"@khanacademy/wonder-blocks-clickable": "8.3.1",
|
|
32
32
|
"@khanacademy/wonder-blocks-core": "12.5.0",
|
|
33
33
|
"@khanacademy/wonder-blocks-icon": "6.0.2",
|
|
34
34
|
"@khanacademy/wonder-blocks-tokens": "18.0.0",
|
|
35
35
|
"@khanacademy/wonder-blocks-typography": "5.0.5",
|
|
36
|
-
"@khanacademy/wonder-blocks-styles": "0.
|
|
36
|
+
"@khanacademy/wonder-blocks-styles": "0.4.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@phosphor-icons/core": "^2.0.2",
|