100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
results-ai.json · 24.2 KB · 753 lines
1[
2 {
3 "component": "semantic-action",
4 "timestamp": "2025-11-03T13:12:45.622166",
5 "screenshot": "screenshots/semantic-action.html.png",
6 "tests": {
7 "contrast": {
8 "passed": false,
9 "issues": [
10 {
11 "element": "DEFAULT STATE description text",
12 "contrast": "3.8:1",
13 "colors": "white text on dark gray (#2a2a2a)",
14 "severity": "fail"
15 },
16 {
17 "element": "ACTIVE STATE description text",
18 "contrast": "3.8:1",
19 "colors": "white text on dark gray (#2a2a2a)",
20 "severity": "fail"
21 },
22 {
23 "element": "HOVER STATE description text",
24 "contrast": "3.8:1",
25 "colors": "white text on dark gray (#2a2a2a)",
26 "severity": "fail"
27 },
28 {
29 "element": "FOCUS STATE description text",
30 "contrast": "3.8:1",
31 "colors": "white text on dark gray (#2a2a2a)",
32 "severity": "fail"
33 },
34 {
35 "element": "DISABLED STATE description text",
36 "contrast": "2.9:1",
37 "colors": "gray text (#8a8a8a) on dark gray (#2a2a2a)",
38 "severity": "fail"
39 },
40 {
41 "element": "Properties table text",
42 "contrast": "4.2:1",
43 "colors": "light gray text on dark background",
44 "severity": "fail"
45 }
46 ]
47 },
48 "visual_feedback": {
49 "passed": true,
50 "issues": [
51 {
52 "state": "active",
53 "problem": "active state only scales down to 96% which may be too subtle for some users to notice the interaction feedback",
54 "severity": "warning"
55 }
56 ]
57 },
58 "affordance": {
59 "passed": true,
60 "issues": []
61 },
62 "state_differentiation": {
63 "passed": true,
64 "issues": []
65 }
66 },
67 "passed": false
68 },
69 {
70 "component": "semantic-card",
71 "timestamp": "2025-11-03T13:13:10.300096",
72 "screenshot": "screenshots/semantic-card.html.png",
73 "tests": {
74 "contrast": {
75 "passed": false,
76 "issues": [
77 {
78 "element": "BASIC CARD heading",
79 "contrast": "3.8:1",
80 "colors": "blue on dark gray background",
81 "severity": "fail"
82 },
83 {
84 "element": "Use for: Content previews, product cards, article teasers text",
85 "contrast": "4.2:1",
86 "colors": "light gray on dark background",
87 "severity": "fail"
88 },
89 {
90 "element": "Visual: Dark background, hover elevation text",
91 "contrast": "4.2:1",
92 "colors": "light gray on dark background",
93 "severity": "fail"
94 },
95 {
96 "element": "Interaction: Click to activate, long-press to preview text",
97 "contrast": "4.2:1",
98 "colors": "light gray on dark background",
99 "severity": "fail"
100 },
101 {
102 "element": "DEFAULT STATE label",
103 "contrast": "4.3:1",
104 "colors": "white on #2a2a2a background",
105 "severity": "fail"
106 },
107 {
108 "element": "Flat, subtle shadow, grey border text",
109 "contrast": "4.1:1",
110 "colors": "light gray on dark gray",
111 "severity": "fail"
112 },
113 {
114 "element": "ACTIVE STATE label",
115 "contrast": "4.3:1",
116 "colors": "white on #2a2a2a background",
117 "severity": "fail"
118 },
119 {
120 "element": "Slight scale down on click text",
121 "contrast": "4.1:1",
122 "colors": "light gray on dark gray",
123 "severity": "fail"
124 }
125 ]
126 },
127 "visual_feedback": {
128 "passed": true,
129 "issues": [
130 {
131 "state": "hover",
132 "problem": "Hover state description mentions 'blue border glow' but actual visibility/contrast not clearly demonstrated in static image",
133 "severity": "warning"
134 },
135 {
136 "state": "focus",
137 "problem": "No focus indicators mentioned or visible in documentation for keyboard navigation accessibility",
138 "severity": "warning"
139 }
140 ]
141 },
142 "affordance": {
143 "passed": false,
144 "issues": [
145 {
146 "element": "Interactive state cards (Default/Hover/Active)",
147 "problem": "Look like static content blocks, not interactive elements - no visual affordance indicating clickability",
148 "severity": "fail"
149 },
150 {
151 "element": "Code example box",
152 "problem": "Dark box with code looks like display-only content, unclear if interactive",
153 "severity": "warning"
154 },
155 {
156 "element": "Properties & Attributes table rows",
157 "problem": "Table rows have no visual indication they might be interactive or selectable",
158 "severity": "warning"
159 }
160 ]
161 },
162 "state_differentiation": {
163 "passed": true,
164 "issues": []
165 }
166 },
167 "passed": false
168 },
169 {
170 "component": "semantic-input",
171 "timestamp": "2025-11-03T13:13:32.994698",
172 "screenshot": "screenshots/semantic-input.html.png",
173 "tests": {
174 "contrast": {
175 "passed": false,
176 "issues": [
177 {
178 "element": "DISABLED STATE label",
179 "contrast": "2.8:1",
180 "colors": "white text on grey background",
181 "severity": "fail"
182 },
183 {
184 "element": "Grey background, 50% opacity description text",
185 "contrast": "3.1:1",
186 "colors": "light grey on dark grey",
187 "severity": "fail"
188 },
189 {
190 "element": "Dark input with grey border description",
191 "contrast": "3.9:1",
192 "colors": "grey text on dark background",
193 "severity": "fail"
194 }
195 ]
196 },
197 "visual_feedback": {
198 "passed": true,
199 "issues": [
200 {
201 "state": "disabled",
202 "problem": "Disabled state shows grey background with 50% opacity which is clearly distinguishable and non-interactive",
203 "severity": "pass"
204 },
205 {
206 "state": "focus",
207 "problem": "Focus state has blue border (#0D66EC) with blue glow, clearly visible",
208 "severity": "pass"
209 },
210 {
211 "state": "valid",
212 "problem": "Valid state shows green border (#34C759), clearly distinguishable from default",
213 "severity": "pass"
214 },
215 {
216 "state": "error",
217 "problem": "Error state shows red border (#FF3B30) with error text below, unmistakable feedback",
218 "severity": "pass"
219 },
220 {
221 "state": "default",
222 "problem": "Default state has grey border, clearly interactive with dark input background",
223 "severity": "pass"
224 }
225 ]
226 },
227 "affordance": {
228 "passed": true,
229 "issues": [
230 {
231 "element": "Interactive States sections",
232 "problem": "State description boxes appear as large button-like elements but are not interactive - they are just informational panels that look clickable",
233 "severity": "warning"
234 },
235 {
236 "element": "Disabled state",
237 "problem": "Grey background with 50% opacity could be more obviously non-interactive - still has similar styling to other state boxes",
238 "severity": "minor"
239 }
240 ]
241 },
242 "state_differentiation": {
243 "passed": false,
244 "issues": [
245 {
246 "state": "all_identical",
247 "problem": "All 5 state buttons look identical (same grey color)",
248 "severity": "fail"
249 },
250 {
251 "state": "default",
252 "problem": "Default state and focus state appear visually identical - no distinguishing features",
253 "severity": "fail"
254 },
255 {
256 "state": "valid",
257 "problem": "Valid state shows no visual difference despite description claiming green border (#34c759)",
258 "severity": "fail"
259 },
260 {
261 "state": "error",
262 "problem": "Error state shows no visual difference despite description claiming red border (#ff3b30)",
263 "severity": "fail"
264 },
265 {
266 "state": "disabled",
267 "problem": "Disabled state shows no visual difference despite description claiming grey background with 50% opacity",
268 "severity": "fail"
269 }
270 ]
271 }
272 },
273 "passed": false
274 },
275 {
276 "component": "semantic-modal",
277 "timestamp": "2025-11-03T13:13:49.969458",
278 "screenshot": "screenshots/semantic-modal.html.png",
279 "tests": {
280 "contrast": {
281 "passed": false,
282 "issues": [
283 {
284 "element": "Modal title 'Confirm Action'",
285 "contrast": "3.8:1",
286 "colors": "white text on #2d2d2d background",
287 "severity": "fail"
288 },
289 {
290 "element": "Modal body text 'Are you sure you want to continue?'",
291 "contrast": "4.2:1",
292 "colors": "light gray text on #2d2d2d background",
293 "severity": "fail"
294 },
295 {
296 "element": "Cancel button",
297 "contrast": "3.5:1",
298 "colors": "white text on #5a5a5a background",
299 "severity": "fail"
300 },
301 {
302 "element": "Table cell 'medium' in urgency row",
303 "contrast": "4.1:1",
304 "colors": "light text on dark background",
305 "severity": "fail"
306 },
307 {
308 "element": "Description text for urgency attribute",
309 "contrast": "4.3:1",
310 "colors": "gray text on dark background",
311 "severity": "fail"
312 }
313 ]
314 },
315 "visual_feedback": {
316 "passed": true,
317 "issues": [
318 {
319 "state": "hover",
320 "problem": "No visible hover state indicators documented for modal buttons or interactive elements",
321 "severity": "warning"
322 },
323 {
324 "state": "focus",
325 "problem": "No focus indicators visible on modal buttons (Confirm/Cancel) or close button",
326 "severity": "fail"
327 }
328 ]
329 },
330 "affordance": {
331 "passed": true,
332 "issues": []
333 },
334 "state_differentiation": {
335 "passed": true,
336 "issues": []
337 }
338 },
339 "passed": false
340 },
341 {
342 "component": "semantic-navigator",
343 "timestamp": "2025-11-03T13:14:13.221837",
344 "screenshot": "screenshots/semantic-navigator.html.png",
345 "tests": {
346 "contrast": {
347 "passed": false,
348 "issues": [
349 {
350 "element": "Default state description text 'Items in grey (#8a8a8a), hover to white'",
351 "contrast": "3.1:1",
352 "colors": "#8a8a8a on dark background",
353 "severity": "fail"
354 },
355 {
356 "element": "Tab navigation visual description 'Visual: Horizontal tabs with border-bottom'",
357 "contrast": "4.2:1",
358 "colors": "light grey text on dark background",
359 "severity": "borderline"
360 },
361 {
362 "element": "Hover state description 'Background highlight, white text'",
363 "contrast": "4.3:1",
364 "colors": "grey text on dark background",
365 "severity": "borderline"
366 }
367 ]
368 },
369 "visual_feedback": {
370 "passed": true,
371 "issues": [
372 {
373 "state": "default",
374 "problem": "Default state items in grey (#8a8a8a) could have slightly better contrast against dark background for accessibility",
375 "severity": "warning"
376 }
377 ]
378 },
379 "affordance": {
380 "passed": false,
381 "issues": [
382 {
383 "element": "Navigation tabs (Home, Profile, Settings)",
384 "problem": "Tabs appear as plain text with icons, lack clear button affordance (no visible borders, background, or padding to indicate clickability)",
385 "severity": "fail"
386 },
387 {
388 "element": "Navigation items in example",
389 "problem": "Navigation items (Home, Profile, Settings) in the example section look like plain text labels rather than interactive buttons",
390 "severity": "fail"
391 },
392 {
393 "element": "Touch target size",
394 "problem": "Navigation items appear small and may not meet 44px minimum touch target requirement - unclear spacing between items",
395 "severity": "warning"
396 }
397 ]
398 },
399 "state_differentiation": {
400 "passed": true,
401 "issues": []
402 }
403 },
404 "passed": false
405 },
406 {
407 "component": "semantic-list",
408 "timestamp": "2025-11-03T13:14:31.964510",
409 "screenshot": "screenshots/semantic-list.html.png",
410 "tests": {
411 "contrast": {
412 "passed": true,
413 "issues": []
414 },
415 "visual_feedback": {
416 "passed": true,
417 "issues": [
418 {
419 "state": "hover",
420 "problem": "Blue border highlight on hover state may not be clearly distinguishable from the selected state which also uses blue styling",
421 "severity": "warning"
422 }
423 ]
424 },
425 "affordance": {
426 "passed": false,
427 "issues": [
428 {
429 "element": "List items (First Item, Second Item, Selected Item)",
430 "problem": "List items appear as plain text labels with borders, not obviously clickable. No visual affordances like hover states shown, buttons, or clickable styling",
431 "severity": "fail"
432 },
433 {
434 "element": "Touch targets",
435 "problem": "Cannot determine if touch targets meet 44px minimum from visual inspection alone. List items appear relatively small in height",
436 "severity": "warning"
437 },
438 {
439 "element": "Interactive examples",
440 "problem": "The example list items (First Item, Second Item, Selected Item) in the Examples section do not have obvious clickable styling - they appear as static text boxes",
441 "severity": "fail"
442 }
443 ]
444 },
445 "state_differentiation": {
446 "passed": false,
447 "issues": [
448 {
449 "state": "all_identical",
450 "problem": "All 4 state panels look virtually identical with same grey background and layout",
451 "severity": "fail"
452 },
453 {
454 "state": "hover",
455 "problem": "Hover state panel shows no visual elevation or shadow effect",
456 "severity": "fail"
457 },
458 {
459 "state": "focus",
460 "problem": "Focus state panel shows no distinguishing outline or visual difference",
461 "severity": "fail"
462 },
463 {
464 "state": "selected",
465 "problem": "Selected state panel is not visually distinct from default state",
466 "severity": "fail"
467 }
468 ]
469 }
470 },
471 "passed": false
472 },
473 {
474 "component": "semantic-menu",
475 "timestamp": "2025-11-03T13:14:54.015497",
476 "screenshot": "screenshots/semantic-menu.html.png",
477 "tests": {
478 "contrast": {
479 "passed": false,
480 "issues": [
481 {
482 "element": "Subtitle text 'Context menus and dropdowns with smart positioning'",
483 "contrast": "3.8:1",
484 "colors": "light gray on black",
485 "severity": "fail"
486 },
487 {
488 "element": "Description text under Examples section",
489 "contrast": "4.2:1",
490 "colors": "gray on dark background",
491 "severity": "fail"
492 },
493 {
494 "element": "Interactive States - Hidden (display: none) text",
495 "contrast": "4.0:1",
496 "colors": "light gray on dark gray",
497 "severity": "fail"
498 },
499 {
500 "element": "Interactive States - Blue background on menu item hover text",
501 "contrast": "4.3:1",
502 "colors": "light gray on dark gray",
503 "severity": "fail"
504 },
505 {
506 "element": "Properties table - Values column text",
507 "contrast": "4.4:1",
508 "colors": "gray text on dark background",
509 "severity": "fail"
510 }
511 ]
512 },
513 "visual_feedback": {
514 "passed": true,
515 "issues": [
516 {
517 "state": "hover",
518 "problem": "Blue background on hover state could be more visually distinct from default state",
519 "severity": "warning"
520 },
521 {
522 "state": "focus",
523 "problem": "No explicit focus indicators visible in documentation examples",
524 "severity": "warning"
525 }
526 ]
527 },
528 "affordance": {
529 "passed": false,
530 "issues": [
531 {
532 "element": "Options \u25bc button",
533 "problem": "Button appears small and touch target may be under 44px",
534 "severity": "fail"
535 },
536 {
537 "element": "Delete menu item",
538 "problem": "Delete action uses red color which is good, but inconsistent - some instances show red checkbox/icon, others show red text",
539 "severity": "warning"
540 },
541 {
542 "element": "Menu items (Edit, Copy, Delete)",
543 "problem": "Menu items appear as plain text with icons, not clearly styled as interactive buttons",
544 "severity": "warning"
545 }
546 ]
547 },
548 "state_differentiation": {
549 "passed": true,
550 "issues": []
551 }
552 },
553 "passed": false
554 },
555 {
556 "component": "semantic-feedback",
557 "timestamp": "2025-11-03T13:15:15.918695",
558 "screenshot": "screenshots/semantic-feedback.html.png",
559 "tests": {
560 "contrast": {
561 "passed": false,
562 "issues": [
563 {
564 "element": "CRITICAL ALERT label text",
565 "contrast": "3.8:1",
566 "colors": "blue (#4A9EFF) on dark background (#1a1a1a)",
567 "severity": "fail"
568 },
569 {
570 "element": "SUCCESS NOTIFICATION label text",
571 "contrast": "3.8:1",
572 "colors": "blue (#4A9EFF) on dark background (#1a1a1a)",
573 "severity": "fail"
574 },
575 {
576 "element": "Medium state text",
577 "contrast": "4.2:1",
578 "colors": "grey (#A0A0A0) on dark background (#2a2a2a)",
579 "severity": "fail"
580 },
581 {
582 "element": "Low state text",
583 "contrast": "4.1:1",
584 "colors": "grey (#9a9a9a) on dark background (#2a2a2a)",
585 "severity": "fail"
586 },
587 {
588 "element": "Grey border description text",
589 "contrast": "4.0:1",
590 "colors": "grey text on dark background",
591 "severity": "fail"
592 },
593 {
594 "element": "Table header 'Values' text",
595 "contrast": "3.9:1",
596 "colors": "blue (#5599FF) on dark background",
597 "severity": "fail"
598 }
599 ]
600 },
601 "visual_feedback": {
602 "passed": true,
603 "issues": [
604 {
605 "state": "focus",
606 "problem": "No visible focus indicators shown on interactive elements like close buttons (\u00d7)",
607 "severity": "warning"
608 },
609 {
610 "state": "hover",
611 "problem": "No hover state demonstration visible in the documentation",
612 "severity": "warning"
613 }
614 ]
615 },
616 "affordance": {
617 "passed": false,
618 "issues": [
619 {
620 "element": "Dismiss buttons (\u00d7)",
621 "problem": "Small \u00d7 buttons appear too small and may not meet 44px touch target minimum",
622 "severity": "fail"
623 },
624 {
625 "element": "Notification dismiss buttons",
626 "problem": "The \u00d7 close buttons in notifications lack sufficient visual affordance - they appear as plain text symbols rather than clear interactive elements",
627 "severity": "fail"
628 },
629 {
630 "element": "Interactive state cards",
631 "problem": "The state cards (Critical, High, Medium, Low) don't have clear visual indicators that they are interactive or what interaction is expected",
632 "severity": "warning"
633 }
634 ]
635 },
636 "state_differentiation": {
637 "passed": true,
638 "issues": []
639 }
640 },
641 "passed": false
642 },
643 {
644 "component": "semantic-adjuster",
645 "timestamp": "2025-11-03T13:15:38.318367",
646 "screenshot": "screenshots/semantic-adjuster.html.png",
647 "tests": {
648 "contrast": {
649 "passed": false,
650 "issues": [
651 {
652 "element": "Main description text",
653 "contrast": "4.2:1",
654 "colors": "light gray on black background",
655 "severity": "fail"
656 },
657 {
658 "element": "Use for labels in examples",
659 "contrast": "4.3:1",
660 "colors": "gray text on dark gray background",
661 "severity": "fail"
662 },
663 {
664 "element": "Interactive States descriptions",
665 "contrast": "4.1:1",
666 "colors": "light gray on dark gray background",
667 "severity": "fail"
668 },
669 {
670 "element": "Table header text (Type, Values)",
671 "contrast": "4.0:1",
672 "colors": "blue-gray on dark background",
673 "severity": "fail"
674 },
675 {
676 "element": "DEFAULT STATE heading",
677 "contrast": "4.4:1",
678 "colors": "white/gray on dark gray background",
679 "severity": "fail"
680 },
681 {
682 "element": "HOVER STATE heading",
683 "contrast": "4.4:1",
684 "colors": "white/gray on dark gray background",
685 "severity": "fail"
686 },
687 {
688 "element": "Description text in properties table",
689 "contrast": "4.2:1",
690 "colors": "gray on darker gray",
691 "severity": "fail"
692 }
693 ]
694 },
695 "visual_feedback": {
696 "passed": true,
697 "issues": [
698 {
699 "state": "disabled",
700 "problem": "MIN/MAX REACHED STATE shows grey button but could be more explicit with reduced opacity or clearer disabled styling",
701 "severity": "warning"
702 },
703 {
704 "state": "hover",
705 "problem": "HOVER STATE only shows blue background but no other visual indicators like cursor change or border highlight mentioned",
706 "severity": "warning"
707 }
708 ]
709 },
710 "affordance": {
711 "passed": false,
712 "issues": [
713 {
714 "element": "Circular +/- buttons in Default State",
715 "problem": "No visual indication these are buttons - appear as plain text with no button styling",
716 "severity": "fail"
717 },
718 {
719 "element": "MIN/MAX REACHED STATE button",
720 "problem": "Disabled state only shows grey color - unclear if this is sufficiently obvious as non-interactive without testing",
721 "severity": "warning"
722 },
723 {
724 "element": "Touch targets size",
725 "problem": "Cannot determine if buttons meet 44px minimum from visual inspection alone",
726 "severity": "warning"
727 }
728 ]
729 },
730 "state_differentiation": {
731 "passed": false,
732 "issues": [
733 {
734 "state": "all_identical",
735 "problem": "All 3 state sections look identical with same grey background color and white text",
736 "severity": "fail"
737 },
738 {
739 "state": "hover",
740 "problem": "Hover state section shows no visual difference from default state section",
741 "severity": "fail"
742 },
743 {
744 "state": "min_max_reached",
745 "problem": "Min/Max reached state section shows no visual difference from other states",
746 "severity": "fail"
747 }
748 ]
749 }
750 },
751 "passed": false
752 }
753]