Commit dc057df
committed
refactor(ui-scripts): put a11y findings behind the badge, not in the row
Feedback on the first pass: the report showed the same findings three times over -
boxes on every "Actual" thumbnail, a card list under each row, and outlines in the
HTML view - which buried the image comparison the report exists for.
Findings now live in one place, the lightbox's A11y view, reached by clicking a row's
badge. The row is back to a three-up comparison plus a "N a11y" pill colored by worst
impact.
Removed: the a11y overlay and legend from the HTML view (it iframes the live page
again, nothing more), the impact filter chips, the "Show markers on screenshots"
toggle, and the embedded a11y JSON payload that only the HTML view's legend needed.
Boxes and cards are rendered into an inert <template> per row and cloned when the A11y
view opens, keeping one renderer. Markers carry their own rule so the overview's rule
filter no longer needs a rendered card to consult.
Also fixes the contrast violations the report surfaced in the test pages themselves -
403 violating elements down to 15. Two causes, both in the pages rather than the
library: custom-icons styled its labels with Tailwind literals (text-gray-500 /
text-gray-700) that ignore the theme and failed on light and dark alike, and eleven
pages had bare text nodes inheriting the browser default black, unreadable on the dark
theme's near-black surface. Both now use Text/Heading, which take their color from the
active theme.
The 15 remaining are deliberate: inverse/on-color text demos rendered on the page
background, text on View's colored alert/success/danger/warning surfaces, a
color="inherit" demo, a raw input in a FormField demo, and FileDrop's own renderLabel -
that last one is a library finding, not a page one.
These twelve pages will show as Changed on the next run; baselines refresh on merge.1 parent 9493349 commit dc057df
16 files changed
Lines changed: 280 additions & 285 deletions
File tree
- .github/workflows
- docs/contributing/testing
- packages/ui-scripts/lib
- __node_tests__
- commands
- regression-test/src/app
- button
- checkbox
- custom-icons
- dateinput
- datetimeinput
- link
- pagination
- progressbar
- select
- small-components
- tooltip
- view
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 105 | + | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
| |||
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
496 | 501 | | |
497 | 502 | | |
498 | | - | |
| 503 | + | |
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
| |||
523 | 528 | | |
524 | 529 | | |
525 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
526 | 535 | | |
527 | 536 | | |
528 | 537 | | |
| |||
533 | 542 | | |
534 | 543 | | |
535 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
536 | 570 | | |
537 | 571 | | |
538 | 572 | | |
| |||
0 commit comments