@d-zero/a11y-check-axe-scenario 0.3.1 → 0.4.0
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/dist/axe.js +1 -0
- package/dist/convert-results-from-violations.js +1 -1
- package/dist/infer-explanation.js +2 -2
- package/dist/paragraph.d.ts +10 -0
- package/dist/paragraph.js +14 -0
- package/package.json +7 -7
package/dist/axe.js
CHANGED
|
@@ -7,6 +7,7 @@ export default createScenario((options) => {
|
|
|
7
7
|
const cache = new Cache(scenarioId, options?.cacheDir);
|
|
8
8
|
return {
|
|
9
9
|
modulePath: import.meta.url,
|
|
10
|
+
moduleParams: JSON.stringify(options ?? {}),
|
|
10
11
|
id: scenarioId,
|
|
11
12
|
async exec(page, sizeName, log) {
|
|
12
13
|
if (options?.cache === false) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { convertResultsFromNode } from './convert-results-from-node.js';
|
|
2
2
|
import { detectLevel } from './detect-level.js';
|
|
3
3
|
import { inferExplanation } from './infer-explanation.js';
|
|
4
|
-
import { p } from './
|
|
4
|
+
import { p } from './paragraph.js';
|
|
5
5
|
import { tagsToSCs } from './tags-to-scs.js';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colorContrastCheck, ColorContrastError } from '@d-zero/a11y-check-core';
|
|
2
|
-
import { br, p } from './
|
|
2
|
+
import { br, p } from './paragraph.js';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param id
|
|
@@ -132,7 +132,7 @@ export function inferExplanation(id, node, style) {
|
|
|
132
132
|
}
|
|
133
133
|
case ColorContrastError.DOES_NOT_DETERMINE_BACKGROUND: {
|
|
134
134
|
needCheck = 'WARNING';
|
|
135
|
-
message = '
|
|
135
|
+
message = '背景色が判定できなかったので#FFFFFFとして判定しています。';
|
|
136
136
|
contrastResult = style
|
|
137
137
|
? colorContrastCheck({
|
|
138
138
|
...style,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/a11y-check-axe-scenario",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Accessibility Checker Axe Scenario",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"clean": "tsc --build --clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@axe-core/puppeteer": "4.10.
|
|
28
|
-
"@d-zero/a11y-check-core": "0.
|
|
27
|
+
"@axe-core/puppeteer": "4.10.2",
|
|
28
|
+
"@d-zero/a11y-check-core": "0.5.0",
|
|
29
29
|
"@d-zero/db-wcag": "1.0.0-alpha.1",
|
|
30
|
-
"@d-zero/shared": "0.
|
|
30
|
+
"@d-zero/shared": "0.9.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"axe-core": "4.10.3",
|
|
34
|
-
"puppeteer": "24.
|
|
34
|
+
"puppeteer": "24.10.1"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"axe-core": "4.10.3",
|
|
38
|
-
"puppeteer": "24.
|
|
38
|
+
"puppeteer": "24.10.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "04c6969564182c36ee38ef41e78130936dfa4863"
|
|
41
41
|
}
|