dsh-workplan 1.7.1 → 1.8.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 +72 -0
- package/README.en.md +42 -1
- package/README.md +43 -1
- package/SECURITY.md +120 -0
- package/docs/SBOM.md +113 -0
- package/docs/cc/AVA-VULNERABILITY-ANALYSIS.md +97 -0
- package/docs/cc/CC-2026-ASSESSMENT.md +266 -0
- package/docs/cc/SECURITY-TARGET.md +244 -0
- package/docs/collaboration.md +440 -0
- package/docs/collapse-interaction-spec.md +272 -0
- package/docs/defect-report-count-inconsistency.md +370 -0
- package/docs/departments.md +194 -0
- package/docs/design-proposals/state-machine.reference.ts +836 -0
- package/docs/design-proposals/state-machine.test.reference.ts +655 -0
- package/docs/fix-report-derived-counts-1.4.3.md +199 -0
- package/docs/fix-report-phase-percent-1.5.2.md +284 -0
- package/docs/preview/progress-visual-1.5.0.html +683 -0
- package/docs/progress-visualization-clarify-20261028.md +211 -0
- package/docs/progress-visualization-design-20261028.md +607 -0
- package/docs/progress-visualization-locate-20261028.md +159 -0
- package/docs/progress-visualization-report-1.5.0.md +140 -0
- package/docs/release-notes-1.7.0.md +46 -0
- package/docs/release-notes-1.7.1.md +36 -0
- package/docs/release-notes-1.8.0.md +80 -0
- package/docs/release-notes-1.8.1.md +69 -0
- package/docs/release-record-1.5.1-20261028.md +258 -0
- package/docs/release-record-1.5.2-20261029.md +101 -0
- package/docs/release-record-1.7.0-20261030.md +58 -0
- package/docs/release-record-1.7.1-20261030.md +56 -0
- package/docs/repro-count-inconsistency.md +310 -0
- package/docs/review-collaboration-20261030.md +246 -0
- package/docs/root-cause-phase-percent.md +866 -0
- package/docs/state-progress-matrix.md +517 -0
- package/docs/status-grouping-ia.md +789 -0
- package/docs/stuck-review-1.3.0.md +646 -0
- package/docs/t4-contrast-measurement.json +496 -0
- package/docs/t4-contrast-measurement.md +177 -0
- package/docs/t8-fix-prioritization.md +105 -0
- package/docs/version-upgrade-rollback-1.5.0-20261028.md +654 -0
- package/docs/visual-refinement-spec.md +164 -0
- package/lib/host.js +20 -3
- package/lib/runtime.js +21 -0
- package/package.json +4 -2
- package/src/host.ts +20 -2
- package/src/runtime.ts +22 -0
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedAt": "2026-10-27T05:56:55.751Z",
|
|
3
|
+
"targets": {
|
|
4
|
+
"themePackage": "<npm-cache>/_npx/_npx/c8633a242642d858/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js",
|
|
5
|
+
"componentBundle": "<repo>/client.js"
|
|
6
|
+
},
|
|
7
|
+
"method": {
|
|
8
|
+
"compositing": "CSS Compositing L1, source-over in sRGB gamma space",
|
|
9
|
+
"luminance": "WCAG 2.x relative luminance",
|
|
10
|
+
"thresholds": "4.5:1 normal text / 3:1 large (>=24px, or >=18.66px bold)"
|
|
11
|
+
},
|
|
12
|
+
"tokens": {
|
|
13
|
+
"light": {
|
|
14
|
+
"label-primary": "var(--dsw-static-neutral-bluish-1000)",
|
|
15
|
+
"label-secondary": "var(--dsw-static-neutral-bluish-700)",
|
|
16
|
+
"label-tertiary": "var(--dsw-static-neutral-bluish-600)",
|
|
17
|
+
"bg-base": "#ffffff",
|
|
18
|
+
"bg-elevated": "undefined → 回退 rgba(148,163,184,.05)",
|
|
19
|
+
"line-1": "undefined → 回退 rgba(148,163,184,.22)"
|
|
20
|
+
},
|
|
21
|
+
"dark": {
|
|
22
|
+
"label-primary": "var(--dsw-static-neutral-bluish-50)",
|
|
23
|
+
"label-secondary": "var(--dsw-static-neutral-bluish-300)",
|
|
24
|
+
"label-tertiary": "var(--dsw-static-neutral-bluish-400)",
|
|
25
|
+
"bg-base": "#151517",
|
|
26
|
+
"bg-elevated": "undefined → 回退 rgba(148,163,184,.05)",
|
|
27
|
+
"line-1": "undefined → 回退 rgba(148,163,184,.22)"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"selfTest": [
|
|
31
|
+
"黑/白(理论 21.00) = 21.00:1",
|
|
32
|
+
"#767676 / 白(WCAG AA 边界 4.54) = 4.54:1",
|
|
33
|
+
"旧:橙 #f97316 / 白(设计稿记 2.80) = 2.80:1",
|
|
34
|
+
"旧:蓝 #0ea5e9 / 白(设计稿记 2.77) = 2.77:1"
|
|
35
|
+
],
|
|
36
|
+
"scenes": [
|
|
37
|
+
{
|
|
38
|
+
"theme": "light",
|
|
39
|
+
"pageBg": "#ffffff",
|
|
40
|
+
"groupBg": "#fafafb",
|
|
41
|
+
"cardBg": "#f4f6f8",
|
|
42
|
+
"rows": [
|
|
43
|
+
{
|
|
44
|
+
"label": "组标题 .dsh-wp-group-title",
|
|
45
|
+
"theme": "light",
|
|
46
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
47
|
+
"fg": "#0f1115",
|
|
48
|
+
"bg": "#fafafb",
|
|
49
|
+
"fontSizePx": 15,
|
|
50
|
+
"fontWeight": 700,
|
|
51
|
+
"large": false,
|
|
52
|
+
"ratio": 18.15,
|
|
53
|
+
"threshold": 4.5,
|
|
54
|
+
"pass": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "计数徽章 .dsh-wp-group-count(进行中)",
|
|
58
|
+
"theme": "light",
|
|
59
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
60
|
+
"fg": "#0f1115",
|
|
61
|
+
"bg": "#fae7db",
|
|
62
|
+
"fontSizePx": 12,
|
|
63
|
+
"fontWeight": 700,
|
|
64
|
+
"large": false,
|
|
65
|
+
"ratio": 15.8,
|
|
66
|
+
"threshold": 4.5,
|
|
67
|
+
"pass": true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"label": "计数徽章 .dsh-wp-group-count(已完成)",
|
|
71
|
+
"theme": "light",
|
|
72
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
73
|
+
"fg": "#0f1115",
|
|
74
|
+
"bg": "#d9eef9",
|
|
75
|
+
"fontSizePx": 12,
|
|
76
|
+
"fontWeight": 700,
|
|
77
|
+
"large": false,
|
|
78
|
+
"ratio": 15.83,
|
|
79
|
+
"threshold": 4.5,
|
|
80
|
+
"pass": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "组头摘要 .dsh-wp-group-sub",
|
|
84
|
+
"theme": "light",
|
|
85
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #475569)",
|
|
86
|
+
"fg": "#61666b",
|
|
87
|
+
"bg": "#fafafb",
|
|
88
|
+
"fontSizePx": 12,
|
|
89
|
+
"fontWeight": 400,
|
|
90
|
+
"large": false,
|
|
91
|
+
"ratio": 5.57,
|
|
92
|
+
"threshold": 4.5,
|
|
93
|
+
"pass": true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"label": "完成度环文字 .dsh-wp-group-ring-label",
|
|
97
|
+
"theme": "light",
|
|
98
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
99
|
+
"fg": "#0f1115",
|
|
100
|
+
"bg": "#fafafb",
|
|
101
|
+
"fontSizePx": 11,
|
|
102
|
+
"fontWeight": 700,
|
|
103
|
+
"large": false,
|
|
104
|
+
"ratio": 18.15,
|
|
105
|
+
"threshold": 4.5,
|
|
106
|
+
"pass": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"label": "需关注徽标 .dsh-wp-group-alert",
|
|
110
|
+
"theme": "light",
|
|
111
|
+
"fgDecl": "color-mix(in srgb, var(--dsw-alias-state-error-primary, #ef4444) 80%, var(--dsw-alias-label-primary, #0f172a) 20%)",
|
|
112
|
+
"fg": "#c01313",
|
|
113
|
+
"bg": "#f8e5e5",
|
|
114
|
+
"fontSizePx": 12,
|
|
115
|
+
"fontWeight": 650,
|
|
116
|
+
"large": false,
|
|
117
|
+
"ratio": 5.18,
|
|
118
|
+
"threshold": 4.5,
|
|
119
|
+
"pass": true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"label": "空组提示 .dsh-wp-group-empty",
|
|
123
|
+
"theme": "light",
|
|
124
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #64748b)",
|
|
125
|
+
"fg": "#61666b",
|
|
126
|
+
"bg": "#fafafb",
|
|
127
|
+
"fontSizePx": 13,
|
|
128
|
+
"fontWeight": 400,
|
|
129
|
+
"large": false,
|
|
130
|
+
"ratio": 5.57,
|
|
131
|
+
"threshold": 4.5,
|
|
132
|
+
"pass": true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"label": "图表卡标题 .dsh-wp-chart-title",
|
|
136
|
+
"theme": "light",
|
|
137
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #cbd5e1)",
|
|
138
|
+
"fg": "#61666b",
|
|
139
|
+
"bg": "#f4f6f8",
|
|
140
|
+
"fontSizePx": 12,
|
|
141
|
+
"fontWeight": 650,
|
|
142
|
+
"large": false,
|
|
143
|
+
"ratio": 5.35,
|
|
144
|
+
"threshold": 4.5,
|
|
145
|
+
"pass": true
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"label": "图表 fallback 图例 .dsh-wp-fallback-legend",
|
|
149
|
+
"theme": "light",
|
|
150
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #cbd5e1)",
|
|
151
|
+
"fg": "#61666b",
|
|
152
|
+
"bg": "#f4f6f8",
|
|
153
|
+
"fontSizePx": 12,
|
|
154
|
+
"fontWeight": 400,
|
|
155
|
+
"large": false,
|
|
156
|
+
"ratio": 5.35,
|
|
157
|
+
"threshold": 4.5,
|
|
158
|
+
"pass": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"label": "图表卡片小标题 .dsh-wp-section-title",
|
|
162
|
+
"theme": "light",
|
|
163
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
164
|
+
"fg": "#61666b",
|
|
165
|
+
"bg": "#f4f6f8",
|
|
166
|
+
"fontSizePx": 13,
|
|
167
|
+
"fontWeight": 650,
|
|
168
|
+
"large": false,
|
|
169
|
+
"ratio": 5.35,
|
|
170
|
+
"threshold": 4.5,
|
|
171
|
+
"pass": true
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"label": "环形图图例 .dsh-wp-legend-item",
|
|
175
|
+
"theme": "light",
|
|
176
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
177
|
+
"fg": "#61666b",
|
|
178
|
+
"bg": "#f4f6f8",
|
|
179
|
+
"fontSizePx": 12,
|
|
180
|
+
"fontWeight": 400,
|
|
181
|
+
"large": false,
|
|
182
|
+
"ratio": 5.35,
|
|
183
|
+
"threshold": 4.5,
|
|
184
|
+
"pass": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"label": "环形图中心说明 .dsh-wp-donut-center span",
|
|
188
|
+
"theme": "light",
|
|
189
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
190
|
+
"fg": "#61666b",
|
|
191
|
+
"bg": "#f4f6f8",
|
|
192
|
+
"fontSizePx": 11,
|
|
193
|
+
"fontWeight": 400,
|
|
194
|
+
"large": false,
|
|
195
|
+
"ratio": 5.35,
|
|
196
|
+
"threshold": 4.5,
|
|
197
|
+
"pass": true
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"label": "图表图例/刻度(Chart.js canvas 文字)",
|
|
201
|
+
"theme": "light",
|
|
202
|
+
"fgDecl": "'#e2e8f0'(回退字面量)",
|
|
203
|
+
"fg": "#e2e8f0",
|
|
204
|
+
"bg": "#f4f6f8",
|
|
205
|
+
"fontSizePx": 12,
|
|
206
|
+
"fontWeight": 400,
|
|
207
|
+
"large": false,
|
|
208
|
+
"ratio": 1.14,
|
|
209
|
+
"threshold": 4.5,
|
|
210
|
+
"pass": false
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"label": "环形图中心百分比 .dsh-wp-donut-center strong(24px 大字)",
|
|
214
|
+
"theme": "light",
|
|
215
|
+
"fgDecl": "继承 .dsh-wp 的 var(--dsw-alias-label-primary)",
|
|
216
|
+
"fg": "#0f1115",
|
|
217
|
+
"bg": "#f4f6f8",
|
|
218
|
+
"fontSizePx": 24,
|
|
219
|
+
"fontWeight": 400,
|
|
220
|
+
"large": true,
|
|
221
|
+
"ratio": 17.43,
|
|
222
|
+
"threshold": 3,
|
|
223
|
+
"pass": true
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"label": ".dsh-wp-group-title(组头 hover 态)",
|
|
227
|
+
"theme": "light",
|
|
228
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
229
|
+
"fg": "#0f1115",
|
|
230
|
+
"bg": "#eff2f5",
|
|
231
|
+
"fontSizePx": 15,
|
|
232
|
+
"fontWeight": 700,
|
|
233
|
+
"large": false,
|
|
234
|
+
"ratio": 16.79,
|
|
235
|
+
"threshold": 4.5,
|
|
236
|
+
"pass": true
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"label": ".dsh-wp-group-sub(组头 hover 态)",
|
|
240
|
+
"theme": "light",
|
|
241
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #475569)",
|
|
242
|
+
"fg": "#61666b",
|
|
243
|
+
"bg": "#eff2f5",
|
|
244
|
+
"fontSizePx": 12,
|
|
245
|
+
"fontWeight": 400,
|
|
246
|
+
"large": false,
|
|
247
|
+
"ratio": 5.15,
|
|
248
|
+
"threshold": 4.5,
|
|
249
|
+
"pass": true
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"label": "完成度环弧线 --dsh-wp-done-ink(非文本 3:1)",
|
|
253
|
+
"theme": "light",
|
|
254
|
+
"fgDecl": "var(--dsh-wp-done-ink) = #0284c7",
|
|
255
|
+
"fg": "#0284c7",
|
|
256
|
+
"bg": "#fafafb",
|
|
257
|
+
"fontSizePx": 0,
|
|
258
|
+
"fontWeight": 0,
|
|
259
|
+
"large": false,
|
|
260
|
+
"ratio": 3.93,
|
|
261
|
+
"threshold": 3,
|
|
262
|
+
"pass": true
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"theme": "dark",
|
|
268
|
+
"pageBg": "#151517",
|
|
269
|
+
"groupBg": "#1b1c1f",
|
|
270
|
+
"cardBg": "#222327",
|
|
271
|
+
"rows": [
|
|
272
|
+
{
|
|
273
|
+
"label": "组标题 .dsh-wp-group-title",
|
|
274
|
+
"theme": "dark",
|
|
275
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
276
|
+
"fg": "#f9fafb",
|
|
277
|
+
"bg": "#1b1c1f",
|
|
278
|
+
"fontSizePx": 15,
|
|
279
|
+
"fontWeight": 700,
|
|
280
|
+
"large": false,
|
|
281
|
+
"ratio": 16.28,
|
|
282
|
+
"threshold": 4.5,
|
|
283
|
+
"pass": true
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"label": "计数徽章 .dsh-wp-group-count(进行中)",
|
|
287
|
+
"theme": "dark",
|
|
288
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
289
|
+
"fg": "#f9fafb",
|
|
290
|
+
"bg": "#3a281e",
|
|
291
|
+
"fontSizePx": 12,
|
|
292
|
+
"fontWeight": 700,
|
|
293
|
+
"large": false,
|
|
294
|
+
"ratio": 13.33,
|
|
295
|
+
"threshold": 4.5,
|
|
296
|
+
"pass": true
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"label": "计数徽章 .dsh-wp-group-count(已完成)",
|
|
300
|
+
"theme": "dark",
|
|
301
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
302
|
+
"fg": "#f9fafb",
|
|
303
|
+
"bg": "#192f3b",
|
|
304
|
+
"fontSizePx": 12,
|
|
305
|
+
"fontWeight": 700,
|
|
306
|
+
"large": false,
|
|
307
|
+
"ratio": 13.24,
|
|
308
|
+
"threshold": 4.5,
|
|
309
|
+
"pass": true
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"label": "组头摘要 .dsh-wp-group-sub",
|
|
313
|
+
"theme": "dark",
|
|
314
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #475569)",
|
|
315
|
+
"fg": "#cfd3d6",
|
|
316
|
+
"bg": "#1b1c1f",
|
|
317
|
+
"fontSizePx": 12,
|
|
318
|
+
"fontWeight": 400,
|
|
319
|
+
"large": false,
|
|
320
|
+
"ratio": 11.29,
|
|
321
|
+
"threshold": 4.5,
|
|
322
|
+
"pass": true
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"label": "完成度环文字 .dsh-wp-group-ring-label",
|
|
326
|
+
"theme": "dark",
|
|
327
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
328
|
+
"fg": "#f9fafb",
|
|
329
|
+
"bg": "#1b1c1f",
|
|
330
|
+
"fontSizePx": 11,
|
|
331
|
+
"fontWeight": 700,
|
|
332
|
+
"large": false,
|
|
333
|
+
"ratio": 16.28,
|
|
334
|
+
"threshold": 4.5,
|
|
335
|
+
"pass": true
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"label": "需关注徽标 .dsh-wp-group-alert",
|
|
339
|
+
"theme": "dark",
|
|
340
|
+
"fgDecl": "color-mix(in srgb, var(--dsw-alias-state-error-primary, #ef4444) 80%, var(--dsw-alias-label-primary, #0f172a) 20%)",
|
|
341
|
+
"fg": "#f37a7a",
|
|
342
|
+
"bg": "#352123",
|
|
343
|
+
"fontSizePx": 12,
|
|
344
|
+
"fontWeight": 650,
|
|
345
|
+
"large": false,
|
|
346
|
+
"ratio": 5.67,
|
|
347
|
+
"threshold": 4.5,
|
|
348
|
+
"pass": true
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"label": "空组提示 .dsh-wp-group-empty",
|
|
352
|
+
"theme": "dark",
|
|
353
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #64748b)",
|
|
354
|
+
"fg": "#cfd3d6",
|
|
355
|
+
"bg": "#1b1c1f",
|
|
356
|
+
"fontSizePx": 13,
|
|
357
|
+
"fontWeight": 400,
|
|
358
|
+
"large": false,
|
|
359
|
+
"ratio": 11.29,
|
|
360
|
+
"threshold": 4.5,
|
|
361
|
+
"pass": true
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"label": "图表卡标题 .dsh-wp-chart-title",
|
|
365
|
+
"theme": "dark",
|
|
366
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #cbd5e1)",
|
|
367
|
+
"fg": "#cfd3d6",
|
|
368
|
+
"bg": "#222327",
|
|
369
|
+
"fontSizePx": 12,
|
|
370
|
+
"fontWeight": 650,
|
|
371
|
+
"large": false,
|
|
372
|
+
"ratio": 10.41,
|
|
373
|
+
"threshold": 4.5,
|
|
374
|
+
"pass": true
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"label": "图表 fallback 图例 .dsh-wp-fallback-legend",
|
|
378
|
+
"theme": "dark",
|
|
379
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #cbd5e1)",
|
|
380
|
+
"fg": "#cfd3d6",
|
|
381
|
+
"bg": "#222327",
|
|
382
|
+
"fontSizePx": 12,
|
|
383
|
+
"fontWeight": 400,
|
|
384
|
+
"large": false,
|
|
385
|
+
"ratio": 10.41,
|
|
386
|
+
"threshold": 4.5,
|
|
387
|
+
"pass": true
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"label": "图表卡片小标题 .dsh-wp-section-title",
|
|
391
|
+
"theme": "dark",
|
|
392
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
393
|
+
"fg": "#cfd3d6",
|
|
394
|
+
"bg": "#222327",
|
|
395
|
+
"fontSizePx": 13,
|
|
396
|
+
"fontWeight": 650,
|
|
397
|
+
"large": false,
|
|
398
|
+
"ratio": 10.41,
|
|
399
|
+
"threshold": 4.5,
|
|
400
|
+
"pass": true
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"label": "环形图图例 .dsh-wp-legend-item",
|
|
404
|
+
"theme": "dark",
|
|
405
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
406
|
+
"fg": "#cfd3d6",
|
|
407
|
+
"bg": "#222327",
|
|
408
|
+
"fontSizePx": 12,
|
|
409
|
+
"fontWeight": 400,
|
|
410
|
+
"large": false,
|
|
411
|
+
"ratio": 10.41,
|
|
412
|
+
"threshold": 4.5,
|
|
413
|
+
"pass": true
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"label": "环形图中心说明 .dsh-wp-donut-center span",
|
|
417
|
+
"theme": "dark",
|
|
418
|
+
"fgDecl": "var(--dsw-alias-label-secondary)",
|
|
419
|
+
"fg": "#cfd3d6",
|
|
420
|
+
"bg": "#222327",
|
|
421
|
+
"fontSizePx": 11,
|
|
422
|
+
"fontWeight": 400,
|
|
423
|
+
"large": false,
|
|
424
|
+
"ratio": 10.41,
|
|
425
|
+
"threshold": 4.5,
|
|
426
|
+
"pass": true
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"label": "图表图例/刻度(Chart.js canvas 文字)",
|
|
430
|
+
"theme": "dark",
|
|
431
|
+
"fgDecl": "'#e2e8f0'(回退字面量)",
|
|
432
|
+
"fg": "#e2e8f0",
|
|
433
|
+
"bg": "#222327",
|
|
434
|
+
"fontSizePx": 12,
|
|
435
|
+
"fontWeight": 400,
|
|
436
|
+
"large": false,
|
|
437
|
+
"ratio": 12.72,
|
|
438
|
+
"threshold": 4.5,
|
|
439
|
+
"pass": true
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"label": "环形图中心百分比 .dsh-wp-donut-center strong(24px 大字)",
|
|
443
|
+
"theme": "dark",
|
|
444
|
+
"fgDecl": "继承 .dsh-wp 的 var(--dsw-alias-label-primary)",
|
|
445
|
+
"fg": "#f9fafb",
|
|
446
|
+
"bg": "#222327",
|
|
447
|
+
"fontSizePx": 24,
|
|
448
|
+
"fontWeight": 400,
|
|
449
|
+
"large": true,
|
|
450
|
+
"ratio": 15.01,
|
|
451
|
+
"threshold": 3,
|
|
452
|
+
"pass": true
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"label": ".dsh-wp-group-title(组头 hover 态)",
|
|
456
|
+
"theme": "dark",
|
|
457
|
+
"fgDecl": "var(--dsw-alias-label-primary, #0f172a)",
|
|
458
|
+
"fg": "#f9fafb",
|
|
459
|
+
"bg": "#272a2e",
|
|
460
|
+
"fontSizePx": 15,
|
|
461
|
+
"fontWeight": 700,
|
|
462
|
+
"large": false,
|
|
463
|
+
"ratio": 13.83,
|
|
464
|
+
"threshold": 4.5,
|
|
465
|
+
"pass": true
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"label": ".dsh-wp-group-sub(组头 hover 态)",
|
|
469
|
+
"theme": "dark",
|
|
470
|
+
"fgDecl": "var(--dsw-alias-label-secondary, #475569)",
|
|
471
|
+
"fg": "#cfd3d6",
|
|
472
|
+
"bg": "#272a2e",
|
|
473
|
+
"fontSizePx": 12,
|
|
474
|
+
"fontWeight": 400,
|
|
475
|
+
"large": false,
|
|
476
|
+
"ratio": 9.59,
|
|
477
|
+
"threshold": 4.5,
|
|
478
|
+
"pass": true
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"label": "完成度环弧线 --dsh-wp-done-ink(非文本 3:1)",
|
|
482
|
+
"theme": "dark",
|
|
483
|
+
"fgDecl": "var(--dsh-wp-done-ink) = #0284c7",
|
|
484
|
+
"fg": "#0284c7",
|
|
485
|
+
"bg": "#1b1c1f",
|
|
486
|
+
"fontSizePx": 0,
|
|
487
|
+
"fontWeight": 0,
|
|
488
|
+
"large": false,
|
|
489
|
+
"ratio": 4.15,
|
|
490
|
+
"threshold": 3,
|
|
491
|
+
"pass": true
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# T4 对比度与字号实测(浅色 / 深色)— 1.4.1 运行态产物
|
|
2
|
+
|
|
3
|
+
> 测量对象:**运行中的 1.4.1 产物**(`<repo>/client.js`,与 `http://127.0.0.1:3080` 实际派发字节 SHA-256 完全一致,见 §2.1)
|
|
4
|
+
> 测量时刻:2026-10-27 13:54:54 +08:00(脚本 `generatedAt` = `2026-10-27T05:54:54.833Z`) 测量者:设计部门子 Agent(T4)
|
|
5
|
+
> 复现命令:`node plugins/dsh-workplan/scripts/t4-contrast.mjs`(零依赖,只读,不改任何源码)
|
|
6
|
+
|
|
7
|
+
## 1. 结论(先看这一行)
|
|
8
|
+
|
|
9
|
+
**34 项测量中 33 项通过 WCAG AA,1 项未达标**:浅色主题下 **Chart.js 画布内的图例文字与坐标轴刻度**实测 **1.14:1**(阈值 4.5:1)。
|
|
10
|
+
根因是**代码缺陷**(取 token 的 DOM 节点用错),不是配色意图问题:`src/client.ts:1425` 用 `getComputedStyle(document.documentElement)` 读 `--dsw-alias-label-primary`,而该 token 在宿主 CSS 中只定义在 **`body`** 上、从未定义在 `html` 上,因此永远取到空串,回退为硬编码 `#e2e8f0`。深色主题下这颗灰恰好够亮(12.72:1,通过),浅色主题下几乎不可见。
|
|
11
|
+
|
|
12
|
+
**"一目了然"层面的判定**:面板自身的 DOM 文字(组标题、计数徽章、摘要、图例、卡片小标题)全部达标且余量充足(最低 5.15:1);但**柱状图卡片的图例与刻度在浅色主题下等于不可读**,这一张卡片目前不满足"一目了然"。
|
|
13
|
+
|
|
14
|
+
## 2. 方法与可信度边界(务必先读)
|
|
15
|
+
|
|
16
|
+
### 2.1 为什么不是浏览器 `getComputedStyle` 的读数
|
|
17
|
+
|
|
18
|
+
本机**没有可用的无头浏览器**:`/Applications` 只有 Safari,无 Chrome/Chromium/Edge;无 `playwright`/`puppeteer`/`electron` npm 包;`~/Library/Caches/ms-playwright` 为空;`safaridriver` 需 `--enable`(需审批,本会话审批被自动拒绝)。页面又受签名 cookie 保护(`GET /` → 401),本会话拿不到会话 cookie。
|
|
19
|
+
|
|
20
|
+
因此本次采用**解析式实测**:直接解析"服务端实际派发的那份 CSS 与 token 定义",再用 WCAG 公式计算。这不是"读源码猜效果",因为:
|
|
21
|
+
|
|
22
|
+
| 证据 | 实测值 |
|
|
23
|
+
|---|---|
|
|
24
|
+
| 派发 `client.js` 字节数 / SHA-256 | 111,815 B / `60de4b65…946464f`,与本地构建**逐行相同** |
|
|
25
|
+
| 派发 `/assets/index-BXV-oxvX.js` SHA-256 | `0f3fc6b857e4f8bd…` == 本地安装包同名文件 |
|
|
26
|
+
| 主题 token 来源 | `@deepseek-ai/dsh-client-ui-theme/lib/client.js` 内 `design_platform_css_default` 字面量,与运行进程同一份 npx 安装 |
|
|
27
|
+
|
|
28
|
+
**方法自校验**(用既有文档/源码注释里的历史基线反推):
|
|
29
|
+
|
|
30
|
+
| 校验项 | 计算值 | 文档记载值 | 出处 |
|
|
31
|
+
|---|---|---|---|
|
|
32
|
+
| 黑 / 白 | 21.00:1 | 21.00:1 ✅ | WCAG 理论值 |
|
|
33
|
+
| `#767676` / 白(AA 边界) | 4.54:1 | 4.54:1 ✅ | WCAG 理论值 |
|
|
34
|
+
| 旧版橙色小字 `#f97316` / 白 | **2.80:1** | 2.80:1 ✅ | 设计稿 §6.1 |
|
|
35
|
+
| 旧版蓝色小字 `#0ea5e9` / 白 | **2.77:1** | 2.77:1 ✅ | 设计稿 §6.1 |
|
|
36
|
+
| 完成度环弧 `#0284c7` / `#fafafb` | 3.93:1 | 3.93:1 ✅ | `client.js:356` 注释 |
|
|
37
|
+
| 完成度环弧(深)/ `#1b1c1f` | 4.15:1 | 4.16:1(差 0.01) | `client.js:357` 注释 |
|
|
38
|
+
| 需关注徽标(深) | 5.67:1 | 5.67:1 ✅ | `docs/visual-refinement-spec.md:72` |
|
|
39
|
+
| 需关注徽标(浅) | 5.18:1 | 5.16:1(差 0.02,取整差异) | 同上 |
|
|
40
|
+
|
|
41
|
+
**一处未能对齐的历史数值(如实披露)**:`client.js:414` 与 `docs/visual-refinement-spec.md:72` 都写着"纯错误色 `#ec1313` 压在 12% 红底上只有 3.70:1(另一处记 3.67:1)"。本文在**纯白底**上复算同一配方得 **3.85:1**,按组卡 `#fafafb` 复算得 3.80:1,两者都复现不出 3.70/3.67,其隐含底色假设未能还原。该差异**不影响任何判定**(三种口径都 <4.5:1),修复后的 5.18:1 也已独立算出,此处仅作记录,避免后续把这个 0.15 当成新缺陷追。
|
|
42
|
+
|
|
43
|
+
### 2.2 半透明背景的"有效合成色"怎么取值
|
|
44
|
+
|
|
45
|
+
按 **CSS Compositing and Blending Level 1** 的 source-over 规则,在 **sRGB 非线性通道**逐通道计算:`C_out = C_fg·α + C_bg·(1−α)`。浏览器对 sRGB 颜色默认就在该空间合成(不做线性化),所以手算与浏览器结果一致——这一点**未在真实浏览器中复核**(见 §6 未验证项)。
|
|
46
|
+
|
|
47
|
+
叠加链(每层都是"上层半透明色 × 下层已合成的有效色"):
|
|
48
|
+
|
|
49
|
+
| 层 | 浅色主题 | 深色主题 |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| 面板底 `.dsh-wp` | `--dsw-alias-bg-base` = `#ffffff`(不透明) | `#151517`(不透明) |
|
|
52
|
+
| 组卡 `.dsh-wp-group` | `rgba(148,163,184,.05)` 叠面板 → **`#fafafb`** | → **`#1b1c1f`** |
|
|
53
|
+
| 图表卡 `.dsh-wp-chart-card` | 渐变最不透明端 `rgba(148,163,184,.10)` 叠面板 → **`#f4f6f8`** | → **`#222327`** |
|
|
54
|
+
| 计数徽章(进行中) | `rgba(249,115,22,.14)` 叠组卡 → **`#fae7db`** | → **`#3a281e`** |
|
|
55
|
+
| 计数徽章(已完成) | `rgba(14,165,233,.14)` 叠组卡 → **`#d9eef9`** | → **`#192f3b`** |
|
|
56
|
+
| 需关注徽标 | `rgba(239,68,68,.12)` 叠组卡 → **`#f8e5e5`** | → **`#352123`** |
|
|
57
|
+
| 组头按钮 hover | `rgba(148,163,184,.10)` 叠组卡 → **`#eff2f5`** | → **`#272a2e`** |
|
|
58
|
+
|
|
59
|
+
两点必须说明:
|
|
60
|
+
|
|
61
|
+
1. **`--dsw-alias-bg-elevated` 与 `--dsw-alias-line-1` 在宿主主题包里各自 0 处定义**(实测 `grep -c` 均为 0)。所以组卡底色**不是**"抬升表面",而是上面那个 5% 板岩灰回退值;1px 描边同样是 `.22` 的回退值。描边不参与文字对比度(只压在边线上,不压字面)。
|
|
62
|
+
2. 图表卡取**渐变最不透明端**(顶部 `.10`)作背景,是**最不利**取法;若取底部 `.02`,对比度只会更高。
|
|
63
|
+
|
|
64
|
+
### 2.3 阈值
|
|
65
|
+
|
|
66
|
+
- 正文:**4.5:1**(WCAG 2.x AA)。本次被测字号最大 15px/700、13px/650,**均未达到"大字"门槛**(≥24px,或 ≥18.66px 且 ≥700),所以一律按 4.5:1 判定,**没有任何元素享受 3:1 放宽**。
|
|
67
|
+
- 非文本图形(完成度环弧):**3:1**(WCAG 1.4.11)。
|
|
68
|
+
|
|
69
|
+
## 3. 实测对比度表(34 项)
|
|
70
|
+
|
|
71
|
+
### 3.1 浅色主题(`body` 无 `data-ds-dark-theme`)
|
|
72
|
+
|
|
73
|
+
| # | 元素 | 前景 | 有效背景 | 字号/字重 | 实测比值 | 阈值 | 判定 |
|
|
74
|
+
|---|---|---|---|---|---|---|---|
|
|
75
|
+
| 1 | 组标题 `.dsh-wp-group-title` | `#0f1115` | `#fafafb` | 15px/700 | **18.15:1** | 4.5 | PASS |
|
|
76
|
+
| 2 | 计数徽章(进行中)`.dsh-wp-group-count` | `#0f1115` | `#fae7db` | 12px/700 | **15.80:1** | 4.5 | PASS |
|
|
77
|
+
| 3 | 计数徽章(已完成)`.dsh-wp-group-count` | `#0f1115` | `#d9eef9` | 12px/700 | **15.83:1** | 4.5 | PASS |
|
|
78
|
+
| 4 | 组头摘要 `.dsh-wp-group-sub` | `#61666b` | `#fafafb` | 12px/400 | **5.57:1** | 4.5 | PASS |
|
|
79
|
+
| 5 | 完成度环文字 `.dsh-wp-group-ring-label` | `#0f1115` | `#fafafb` | 11px/700 | **18.15:1** | 4.5 | PASS |
|
|
80
|
+
| 6 | 需关注徽标 `.dsh-wp-group-alert` | `#c01313`(`color-mix` 80% 错误色 + 20% 主文本) | `#f8e5e5` | 12px/650 | **5.18:1** | 4.5 | PASS |
|
|
81
|
+
| 7 | 空组提示 `.dsh-wp-group-empty` | `#61666b` | `#fafafb` | 13px/400 | **5.57:1** | 4.5 | PASS |
|
|
82
|
+
| 8 | 图表卡标题 `.dsh-wp-chart-title` | `#61666b` | `#f4f6f8` | 12px/650 | **5.35:1** | 4.5 | PASS |
|
|
83
|
+
| 9 | 图表 fallback 图例 `.dsh-wp-fallback-legend` | `#61666b` | `#f4f6f8` | 12px/400 | **5.35:1** | 4.5 | PASS |
|
|
84
|
+
| 10 | 图表卡片小标题 `.dsh-wp-section-title` | `#61666b` | `#f4f6f8` | 13px/650 | **5.35:1** | 4.5 | PASS |
|
|
85
|
+
| 11 | 环形图图例 `.dsh-wp-legend-item` | `#61666b` | `#f4f6f8` | 12px/400 | **5.35:1** | 4.5 | PASS |
|
|
86
|
+
| 12 | 环形图中心说明 `.dsh-wp-donut-center span` | `#61666b` | `#f4f6f8` | 11px/400 | **5.35:1** | 4.5 | PASS |
|
|
87
|
+
| 13 | **图表图例/坐标轴(Chart.js 画布文字)** | **`#e2e8f0`** | `#f4f6f8` | 12px/400 | **1.14:1** | 4.5 | **FAIL** |
|
|
88
|
+
| 14 | 环形图中心百分比(24px 大字) | `#0f1115` | `#f4f6f8` | 24px | **17.43:1** | 3.0 | PASS |
|
|
89
|
+
| 15 | 组标题(组头 hover 态) | `#0f1115` | `#eff2f5` | 15px/700 | **16.79:1** | 4.5 | PASS |
|
|
90
|
+
| 16 | 组头摘要(组头 hover 态) | `#61666b` | `#eff2f5` | 12px/400 | **5.15:1** | 4.5 | PASS |
|
|
91
|
+
| 17 | 完成度环弧 `--dsh-wp-done-ink` | `#0284c7` | `#fafafb` | 图形 | **3.93:1** | 3.0 | PASS |
|
|
92
|
+
|
|
93
|
+
### 3.2 深色主题(`body[data-ds-dark-theme]`)
|
|
94
|
+
|
|
95
|
+
| # | 元素 | 前景 | 有效背景 | 字号/字重 | 实测比值 | 阈值 | 判定 |
|
|
96
|
+
|---|---|---|---|---|---|---|---|
|
|
97
|
+
| 1 | 组标题 | `#f9fafb` | `#1b1c1f` | 15px/700 | **16.28:1** | 4.5 | PASS |
|
|
98
|
+
| 2 | 计数徽章(进行中) | `#f9fafb` | `#3a281e` | 12px/700 | **13.33:1** | 4.5 | PASS |
|
|
99
|
+
| 3 | 计数徽章(已完成) | `#f9fafb` | `#192f3b` | 12px/700 | **13.24:1** | 4.5 | PASS |
|
|
100
|
+
| 4 | 组头摘要 | `#cfd3d6` | `#1b1c1f` | 12px/400 | **11.29:1** | 4.5 | PASS |
|
|
101
|
+
| 5 | 完成度环文字 | `#f9fafb` | `#1b1c1f` | 11px/700 | **16.28:1** | 4.5 | PASS |
|
|
102
|
+
| 6 | 需关注徽标 | `#f37a7a` | `#352123` | 12px/650 | **5.67:1** | 4.5 | PASS |
|
|
103
|
+
| 7 | 空组提示 | `#cfd3d6` | `#1b1c1f` | 13px/400 | **11.29:1** | 4.5 | PASS |
|
|
104
|
+
| 8 | 图表卡标题 | `#cfd3d6` | `#222327` | 12px/650 | **10.41:1** | 4.5 | PASS |
|
|
105
|
+
| 9 | 图表 fallback 图例 | `#cfd3d6` | `#222327` | 12px/400 | **10.41:1** | 4.5 | PASS |
|
|
106
|
+
| 10 | 图表卡片小标题 | `#cfd3d6` | `#222327` | 13px/650 | **10.41:1** | 4.5 | PASS |
|
|
107
|
+
| 11 | 环形图图例 | `#cfd3d6` | `#222327` | 12px/400 | **10.41:1** | 4.5 | PASS |
|
|
108
|
+
| 12 | 环形图中心说明 | `#cfd3d6` | `#222327` | 11px/400 | **10.41:1** | 4.5 | PASS |
|
|
109
|
+
| 13 | 图表图例/坐标轴(画布文字) | `#e2e8f0` | `#222327` | 12px/400 | **12.72:1** | 4.5 | PASS |
|
|
110
|
+
| 14 | 环形图中心百分比(24px 大字) | `#f9fafb` | `#222327` | 24px | **15.01:1** | 3.0 | PASS |
|
|
111
|
+
| 15 | 组标题(hover 态) | `#f9fafb` | `#272a2e` | 15px/700 | **13.83:1** | 4.5 | PASS |
|
|
112
|
+
| 16 | 组头摘要(hover 态) | `#cfd3d6` | `#272a2e` | 12px/400 | **9.59:1** | 4.5 | PASS |
|
|
113
|
+
| 17 | 完成度环弧 | `#0284c7` | `#1b1c1f` | 图形 | **4.15:1** | 3.0 | PASS |
|
|
114
|
+
|
|
115
|
+
> 第 17 项源码注释自称深色 4.16:1,本次实算 4.15:1(差 0.01,属公式常数/取整差异),阈值不受影响。
|
|
116
|
+
|
|
117
|
+
## 4. 字号实测(是否触发"大字"放宽)
|
|
118
|
+
|
|
119
|
+
| 元素 | 实测字号/字重 | 是否属"大字" |
|
|
120
|
+
|---|---|---|
|
|
121
|
+
| 组标题 | 15px / 700 | 否(<18.66px) |
|
|
122
|
+
| 计数徽章 / 摘要 / 图例 / 卡片标题 / 徽标 | 11–13px | 否 |
|
|
123
|
+
| 环形图中心百分比 | 24px | **是**(3:1) |
|
|
124
|
+
|
|
125
|
+
结论:**面板里除环形图中心百分比外,没有任何文字能享受 3:1 放宽**——所以 §3 里 4.5:1 的判定才是有效的,不能拿"大字"当挡箭牌。
|
|
126
|
+
|
|
127
|
+
### 4.1 与设计稿 §6.2「尺寸与排版」的字号差异(非对比度问题,仅记录)
|
|
128
|
+
|
|
129
|
+
| 元素 | 设计稿 §6.2 | 1.4.1 实测 | 差异 | 建议 |
|
|
130
|
+
|---|---|---|---|---|
|
|
131
|
+
| 组头标题 | 14px / 600 | **15px / 700** | +1px、+100 字重 | 可接受(更清晰),若要严格对齐改回 14/600 |
|
|
132
|
+
| 组头副行 | 11px / 400 | **12px / 400** | +1px | 可接受,且 12px 对中文更易读 |
|
|
133
|
+
| 环中心百分比 | 13px / 700 | **11px / 700** | −2px | **偏低**:11px 是本面板最小字号,建议不低于 12px |
|
|
134
|
+
| 需处理徽章 | 11px / 600 | **12px / 650** | +1px、+50 | 可接受 |
|
|
135
|
+
| 计数徽章 | 12px / 600 | **12px / 700** | +100 字重 | 可接受 |
|
|
136
|
+
|
|
137
|
+
这几处只影响"精致"观感与设计一致性,**不影响任何对比度判定**(字号越大越有利)。其中「环中心百分比 11px」是唯一朝不利方向偏的,列为**低优先级视觉建议**。
|
|
138
|
+
|
|
139
|
+
## 5. 未达标项与最小修复(需主 Agent 执行)
|
|
140
|
+
|
|
141
|
+
### 唯一 FAIL:浅色主题 Chart.js 画布文字 1.14:1
|
|
142
|
+
|
|
143
|
+
| 项 | 内容 |
|
|
144
|
+
|---|---|
|
|
145
|
+
| 现象 | 柱状图卡片里的**图例两项文字**与 **x 轴百分比刻度、y 轴计划名刻度**在浅色主题下几乎不可见 |
|
|
146
|
+
| 影响范围 | 该图表用 `ink` 的有 3 处:`legend.labels.color`(`client.js:1275`)、`x.ticks.color`(`1292`)、`y.ticks.color`(`1293`) |
|
|
147
|
+
| 根因 | `src/client.ts:1425`:`getComputedStyle(document.documentElement).getPropertyValue('--dsw-alias-label-primary').trim() \|\| '#e2e8f0'`。`--dsw-alias-*` 全部只定义在 `body` 上(`html` 不继承子元素的自定义属性),故取值恒为 `''`,恒回退 `#e2e8f0` |
|
|
148
|
+
| 最小修复(1 行) | `getComputedStyle(document.documentElement)` → `getComputedStyle(document.body)` |
|
|
149
|
+
| 修复后预期 | 浅色 `#0f1115` / `#f4f6f8` = **17.43:1**;深色 `#f9fafb` / `#222327` = **15.01:1**(同一 SVG 文字口径,见第 14 项) |
|
|
150
|
+
| 主 Agent 必做的重启动作 | 1) `cd plugins/dsh-workplan && npm run build`;2) `npm test`;3) 重启 `dsh web`(当前监听 PID 75646,`http://127.0.0.1:3080`)使新 `client.js` 与新的 rev 生效。**不重启则页面仍会加载旧 bundle** |
|
|
151
|
+
| 验收方式 | 修复后浅色主题下刷新页面,柱状图图例与刻度应清晰可读;或重跑 `node scripts/t4-contrast.mjs`,第 13 项应从 1.14 变为 ≥4.5(脚本本身需把 ink 取值改为 `document.body` 口径才反映修复,届时该项 FAIL 应消失) |
|
|
152
|
+
|
|
153
|
+
### 已消除的历史问题(对照 `CHANGELOG.md` 1.4.0 记录的 2.26–2.80 / 2.14–4.10:1、设计稿 §6.1 的 2.80 / 2.77)
|
|
154
|
+
|
|
155
|
+
| 旧做法 | 文档记录值 | 本文复算 | 现做法 | 现实测 |
|
|
156
|
+
|---|---|---|---|---|
|
|
157
|
+
| 组标题用品牌橙 `#f97316` | 2.80:1 | 2.80:1 | 主文本色 `#0f1115` | **18.15:1** |
|
|
158
|
+
| 组标题用品牌蓝 `#0ea5e9` | 2.77:1 | 2.77:1 | 主文本色 `#0f1115` | **18.15:1** |
|
|
159
|
+
| 徽标用纯错误色 | 3.70 / 3.67:1 | 3.85:1(纯白底;见 §2.1 披露) | `color-mix` 80% 错误色 + 20% 主文本 | **5.18:1** |
|
|
160
|
+
|
|
161
|
+
品牌橙/蓝现在只出现在**圆点、徽章底、渐变填充、环弧**这些非文本图形上,符合设计稿"品牌色只用于图形/大字"的要求。
|
|
162
|
+
|
|
163
|
+
## 6. 未验证项(不得当成已通过)
|
|
164
|
+
|
|
165
|
+
1. **未在真实浏览器中读取 `getComputedStyle`**:本机无可用无头/可自动化浏览器(见 §2.1),全部数值为"解析式实测",已用设计稿基线自校验,但没有浏览器读数交叉验证。
|
|
166
|
+
2. **半透明叠加是否与浏览器逐位一致**:按 CSS Compositing L1 手算,理论上一致;未在真实渲染中采样像素复核。
|
|
167
|
+
3. **主题切换时机**:上文分别按"初始为浅色/初始为深色"测量;页面运行中切换主题后是否有未重算的样式,未验证。
|
|
168
|
+
4. **图标/形状等非颜色编码**(折叠 chevron、圆点、aria 状态)不在本子任务范围,未测量。
|
|
169
|
+
|
|
170
|
+
## 7. 证据文件
|
|
171
|
+
|
|
172
|
+
| 文件 | 说明 |
|
|
173
|
+
|---|---|
|
|
174
|
+
| `plugins/dsh-workplan/scripts/t4-contrast.mjs` | 测量脚本(零依赖,只读,含方法自校验;提取失败即抛错,不猜测) |
|
|
175
|
+
| `plugins/dsh-workplan/docs/t4-contrast-measurement.json` | 34 项结构化结果(元素/主题/前景/背景/字号/字重/比值/阈值/判定) |
|
|
176
|
+
| `plugins/dsh-workplan/docs/status-grouping-ia.md` §6.1 | 设计稿的对比度要求与历史基线 |
|
|
177
|
+
| `plugins/dsh-workplan/src/client.ts:1425`、`client.js:1253` | 唯一 FAIL 的根因位置 |
|