Repository navigation
Commit c42d3c2
fix(a11y): each Clean Up pane's working sentence is said in a live region that is in the sheet from the start - it stood only in the aria-label of a role="status" element that one innerHTML write put on screen already filled, and a screen reader announces a live region's text as it changes, not its label, and seldom a region that appears filled (review F3.9 risk)
The Clean Up sheet now keeps #cleanWorking (sr-only, role="status",
aria-live="polite", aria-atomic="true") in its markup. Once Smart
suggestions, Empty folders, Shrink video or Find writes its working rows,
cleanSayWorking reads their sentence from the rows' own label and puts it
in the region's text a frame later, emptying the region first so the same
sentence said again is a change a screen reader hears. Once those rows are
gone (the pane answered, failed or says it waits) the region is emptied, so
it never says a pane is working after it stopped; a newer pane's rows take
the region over. The rows keep their label, so the pane says what it is
doing when it is reached by reading.
treeScanKey runs the four panes, the page's own cleanSayWorking, a stub
MutationObserver and frames by hand: each sentence reaches the region's
text and leaves with its rows; asked again it is emptied and said again; of
two panes at work only the newer one's sentence is said, and the older one
answering does not empty it.
Mutants F39-a (no region in the markup), b (the sentence never set), c (set
at once, not a frame later), c2 (not emptied first), d (never emptied), e
(an older pane's frame saying its sentence), f (an older pane's watch left
running), g1-g4 (each pane's call removed), i (Smart's request not out),
each RED, restored by SHA-256.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 79c64a0 commit c42d3c2
4 files changed
Lines changed: 199 additions & 4 deletions
File tree
- public
- src/ui
- app
- markup
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4968 | 4968 | | |
4969 | 4969 | | |
4970 | 4970 | | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
4971 | 4977 | | |
4972 | 4978 | | |
4973 | 4979 | | |
| |||
39340 | 39346 | | |
39341 | 39347 | | |
39342 | 39348 | | |
| 39349 | + | |
| 39350 | + | |
| 39351 | + | |
| 39352 | + | |
| 39353 | + | |
| 39354 | + | |
| 39355 | + | |
| 39356 | + | |
| 39357 | + | |
| 39358 | + | |
| 39359 | + | |
| 39360 | + | |
| 39361 | + | |
| 39362 | + | |
| 39363 | + | |
| 39364 | + | |
| 39365 | + | |
| 39366 | + | |
| 39367 | + | |
| 39368 | + | |
| 39369 | + | |
| 39370 | + | |
| 39371 | + | |
| 39372 | + | |
| 39373 | + | |
| 39374 | + | |
| 39375 | + | |
| 39376 | + | |
| 39377 | + | |
| 39378 | + | |
39343 | 39379 | | |
39344 | 39380 | | |
39345 | 39381 | | |
| |||
39430 | 39466 | | |
39431 | 39467 | | |
39432 | 39468 | | |
| 39469 | + | |
| 39470 | + | |
39433 | 39471 | | |
39434 | 39472 | | |
39435 | 39473 | | |
| |||
39627 | 39665 | | |
39628 | 39666 | | |
39629 | 39667 | | |
| 39668 | + | |
39630 | 39669 | | |
39631 | 39670 | | |
39632 | 39671 | | |
| |||
40217 | 40256 | | |
40218 | 40257 | | |
40219 | 40258 | | |
| 40259 | + | |
40220 | 40260 | | |
40221 | 40261 | | |
40222 | 40262 | | |
| |||
40504 | 40544 | | |
40505 | 40545 | | |
40506 | 40546 | | |
40507 | | - | |
| 40547 | + | |
| 40548 | + | |
| 40549 | + | |
| 40550 | + | |
| 40551 | + | |
40508 | 40552 | | |
40509 | 40553 | | |
40510 | 40554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
107 | 137 | | |
108 | 138 | | |
109 | 139 | | |
| |||
194 | 224 | | |
195 | 225 | | |
196 | 226 | | |
| 227 | + | |
| 228 | + | |
197 | 229 | | |
198 | 230 | | |
199 | 231 | | |
| |||
391 | 423 | | |
392 | 424 | | |
393 | 425 | | |
| 426 | + | |
394 | 427 | | |
395 | 428 | | |
396 | 429 | | |
| |||
981 | 1014 | | |
982 | 1015 | | |
983 | 1016 | | |
| 1017 | + | |
984 | 1018 | | |
985 | 1019 | | |
986 | 1020 | | |
| |||
1268 | 1302 | | |
1269 | 1303 | | |
1270 | 1304 | | |
1271 | | - | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
1272 | 1310 | | |
1273 | 1311 | | |
1274 | 1312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
0 commit comments