-
-
Notifications
You must be signed in to change notification settings - Fork 944
Expand file tree
/
Copy pathaccessibility-mockup.html
More file actions
870 lines (787 loc) · 38.1 KB
/
accessibility-mockup.html
File metadata and controls
870 lines (787 loc) · 38.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
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
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leantime Accessibility Improvements Mockup</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Roboto', sans-serif;
font-size: 14px;
line-height: 1.5;
background: #f5f5f5;
padding: 20px;
}
h1 {
text-align: center;
margin-bottom: 10px;
color: #333;
}
.subtitle {
text-align: center;
color: #666;
margin-bottom: 30px;
}
.section {
margin-bottom: 40px;
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.section h2 {
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
display: flex;
align-items: center;
gap: 10px;
}
.section h2 .badge {
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
font-weight: normal;
}
.badge.critical {
background: #c41e3a;
color: white;
}
.badge.warning {
background: #f9a825;
color: black;
}
.comparison {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 20px;
}
.comparison-box {
border-radius: 8px;
overflow: hidden;
}
.comparison-header {
padding: 10px 15px;
font-weight: bold;
font-size: 13px;
}
.before .comparison-header {
background: #ffebee;
color: #c41e3a;
}
.after .comparison-header {
background: #e8f5e9;
color: #2e7d32;
}
.comparison-content {
padding: 20px;
border: 1px solid #ddd;
border-top: none;
border-radius: 0 0 8px 8px;
}
.contrast-info {
font-size: 12px;
padding: 8px 12px;
border-radius: 4px;
margin-top: 10px;
display: inline-block;
}
.contrast-fail {
background: #ffebee;
color: #c41e3a;
}
.contrast-pass {
background: #e8f5e9;
color: #2e7d32;
}
/* Dark mode simulation containers */
.dark-container {
background: #292929;
padding: 20px;
border-radius: 8px;
}
.light-container {
background: #ffffff;
padding: 20px;
border-radius: 8px;
border: 1px solid #eee;
}
/* Status labels */
.label {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 13px;
margin: 4px;
}
/* Dropdown mockup */
.dropdown-mockup {
background: #292929;
border-radius: 10px;
padding: 8px 0;
width: 250px;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.dropdown-item {
padding: 10px 15px;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
}
.dropdown-item:hover {
background: #222;
}
.dropdown-item .icon {
width: 30px;
height: 30px;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
}
.dropdown-item .text {
flex: 1;
}
.dropdown-item .text small {
display: block;
font-size: 11px;
opacity: 0.7;
}
/* Menu mockup */
.menu-mockup {
background: #292929;
border-radius: 10px;
padding: 10px;
width: 200px;
}
.menu-item {
padding: 10px 15px;
border-radius: 20px;
margin-bottom: 2px;
}
.menu-item.hover {
background: #222;
}
/* Grayscale demo */
.grayscale-demo {
padding: 20px;
border-radius: 8px;
}
.grayscale-text {
font-size: 16px;
margin-bottom: 10px;
}
.grayscale-link {
text-decoration: underline;
}
/* Focus indicator demo */
.focus-demo {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.focus-button {
padding: 10px 20px;
border-radius: 8px;
border: none;
font-size: 14px;
cursor: pointer;
}
.focus-button.before-focus {
outline: 2px solid #0052a3;
outline-offset: 2px;
}
.focus-button.after-focus {
outline: 3px solid #66b3ff;
outline-offset: 3px;
box-shadow: 0 0 0 7px rgba(102, 179, 255, 0.2);
}
/* Softer focus alternatives */
.focus-button.after-focus-soft {
outline: 2px solid #66b3ff;
outline-offset: 2px;
box-shadow: none;
}
.focus-button.after-focus-minimal {
outline: 2px solid rgba(102, 179, 255, 0.7);
outline-offset: 2px;
box-shadow: none;
}
/* Info boxes */
.info-box {
background: #e3f2fd;
border-left: 4px solid #1976d2;
padding: 15px;
margin: 15px 0;
border-radius: 0 8px 8px 0;
}
.info-box.neuro {
background: #f3e5f5;
border-left-color: #7b1fa2;
}
/* Tab navigation for themes */
.theme-tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.theme-tab {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.theme-tab.active {
background: #004666;
color: white;
}
.theme-tab:not(.active) {
background: #eee;
color: #333;
}
.theme-content {
display: none;
}
.theme-content.active {
display: block;
}
/* Spacing */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
/* Grid for labels */
.label-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
</style>
</head>
<body>
<h1>Leantime Accessibility Improvements</h1>
<p class="subtitle">Visual comparison of current issues and proposed fixes</p>
<!-- Issue 1: Grey Label -->
<div class="section">
<h2>
Issue #1: Grey Status Label
<span class="badge critical">CRITICAL - 2.3:1 ratio</span>
</h2>
<p class="mb-20">White text on grey background fails WCAG AA requirements (needs 4.5:1 minimum)</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #aaaaaa; color: #ffffff;">Grey Status</span>
<span class="label" style="background: #aaaaaa; color: #ffffff;">Backlog</span>
<span class="label" style="background: #aaaaaa; color: #ffffff;">On Hold</span>
<div class="contrast-info contrast-fail">Contrast: 2.3:1 - FAILS WCAG AA</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Proposed)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #aaaaaa; color: #000000;">Grey Status</span>
<span class="label" style="background: #aaaaaa; color: #000000;">Backlog</span>
<span class="label" style="background: #aaaaaa; color: #000000;">On Hold</span>
<div class="contrast-info contrast-pass">Contrast: 7.0:1 - PASSES WCAG AAA</div>
</div>
</div>
</div>
</div>
<!-- Issue 2: Yellow Label (Minimal Theme) -->
<div class="section">
<h2>
Issue #2: Yellow Status Label (Minimal Theme)
<span class="badge critical">CRITICAL - 2.1:1 ratio</span>
</h2>
<p class="mb-20">Minimal theme uses white text on yellow, while Default theme correctly uses black</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Minimal Theme)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #fdab3d; color: #ffffff;">In Progress</span>
<span class="label" style="background: #fdab3d; color: #ffffff;">Warning</span>
<span class="label" style="background: #fdab3d; color: #ffffff;">Pending</span>
<div class="contrast-info contrast-fail">Contrast: 2.1:1 - FAILS WCAG AA</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Match Default Theme)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #fdab3d; color: #000000;">In Progress</span>
<span class="label" style="background: #fdab3d; color: #000000;">Warning</span>
<span class="label" style="background: #fdab3d; color: #000000;">Pending</span>
<div class="contrast-info contrast-pass">Contrast: 8.5:1 - PASSES WCAG AAA</div>
</div>
</div>
</div>
</div>
<!-- Issue 3: Pink Label -->
<div class="section">
<h2>
Issue #3: Pink Status Label
<span class="badge warning">MARGINAL - 3.1:1 ratio</span>
</h2>
<p class="mb-20">White text on pink background barely fails WCAG AA for normal text</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #F26CA7; color: #ffffff;">Design</span>
<span class="label" style="background: #F26CA7; color: #ffffff;">UX Review</span>
<div class="contrast-info contrast-fail">Contrast: 3.1:1 - FAILS WCAG AA (needs 4.5:1)</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Proposed)</div>
<div class="comparison-content light-container">
<span class="label" style="background: #F26CA7; color: #000000;">Design</span>
<span class="label" style="background: #F26CA7; color: #000000;">UX Review</span>
<div class="contrast-info contrast-pass">Contrast: 5.5:1 - PASSES WCAG AA</div>
</div>
</div>
</div>
</div>
<!-- Issue 4: Dark Mode Menu Hover -->
<div class="section">
<h2>
Issue #4: Dark Mode Menu Hover Color
<span class="badge warning">MARGINAL - 3.4:1 ratio</span>
</h2>
<p class="mb-20">The accent color (teal/blue) used for hover states is too dark against dark backgrounds</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current Dark Mode)</div>
<div class="comparison-content">
<div class="menu-mockup">
<div class="menu-item" style="color: #bbbbbb;">
Dashboard
</div>
<div class="menu-item hover" style="color: #0052a3;">
Projects (hover)
</div>
<div class="menu-item" style="color: #bbbbbb;">
Timesheets
</div>
<div class="menu-item" style="color: #bbbbbb;">
Reports
</div>
</div>
<div class="contrast-info contrast-fail mt-20">Hover text: 3.4:1 - Hard to read</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Proposed)</div>
<div class="comparison-content">
<div class="menu-mockup">
<div class="menu-item" style="color: #bbbbbb;">
Dashboard
</div>
<div class="menu-item hover" style="color: #66b3ff;">
Projects (hover)
</div>
<div class="menu-item" style="color: #bbbbbb;">
Timesheets
</div>
<div class="menu-item" style="color: #bbbbbb;">
Reports
</div>
</div>
<div class="contrast-info contrast-pass mt-20">Hover text: 6.8:1 - Clear and readable</div>
</div>
</div>
</div>
</div>
<!-- Issue 5: Project Dropdown (Your reported issue) -->
<div class="section">
<h2>
Issue #5: Dark Mode Project Dropdown
<span class="badge critical">YOUR REPORTED ISSUE</span>
</h2>
<p class="mb-20">This is the menu dropdown issue you mentioned - project names are hard to read</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current)</div>
<div class="comparison-content">
<div class="dropdown-mockup">
<div class="dropdown-item">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">LT</div>
<div class="text" style="color: #bbbbbb;">
Leantime Core
<small style="color: #888;">Development</small>
</div>
</div>
<div class="dropdown-item" style="background: #222;">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">MK</div>
<div class="text" style="color: #0052a3;">
Marketing Website
<small style="color: #666;">Design Team</small>
</div>
</div>
<div class="dropdown-item">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">CL</div>
<div class="text" style="color: #bbbbbb;">
Client Portal
<small style="color: #888;">Q1 2024</small>
</div>
</div>
</div>
<div class="contrast-info contrast-fail mt-20">Hover state text nearly invisible (3.4:1)</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Proposed)</div>
<div class="comparison-content">
<div class="dropdown-mockup">
<div class="dropdown-item">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">LT</div>
<div class="text" style="color: #eeeeee;">
Leantime Core
<small style="color: #aaa;">Development</small>
</div>
</div>
<div class="dropdown-item" style="background: #222;">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">MK</div>
<div class="text" style="color: #ffffff;">
Marketing Website
<small style="color: #aaa;">Design Team</small>
</div>
</div>
<div class="dropdown-item">
<div class="icon" style="background: linear-gradient(135deg, #0052a3 20%, #00a887 90%); color: white;">CL</div>
<div class="text" style="color: #eeeeee;">
Client Portal
<small style="color: #aaa;">Q1 2024</small>
</div>
</div>
</div>
<div class="contrast-info contrast-pass mt-20">All text clearly readable (11:1+)</div>
</div>
</div>
</div>
</div>
<!-- Issue 6: Grayscale Mode -->
<div class="section">
<h2>
Issue #6: Grayscale2 Color Scheme in Dark Mode
<span class="badge critical">CRITICAL - 1.4:1 ratio</span>
</h2>
<p class="mb-20">The "Grayscale Reverse" color scheme uses nearly invisible colors in dark mode</p>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current Grayscale2 Dark)</div>
<div class="comparison-content">
<div class="grayscale-demo" style="background: #292929;">
<div class="grayscale-text" style="color: #4a4a4a;">
This primary text is nearly invisible!
</div>
<a class="grayscale-link" style="color: #4a4a4a;">Links are impossible to see</a>
<div class="grayscale-text mt-20" style="color: #d1d1d1;">
Secondary text is fine though.
</div>
</div>
<div class="contrast-info contrast-fail mt-20">Primary: 1.4:1 - Completely unreadable!</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Proposed Fix)</div>
<div class="comparison-content">
<div class="grayscale-demo" style="background: #292929;">
<div class="grayscale-text" style="color: #a0a0a0;">
Primary text is now clearly visible
</div>
<a class="grayscale-link" style="color: #a0a0a0;">Links are easy to find and read</a>
<div class="grayscale-text mt-20" style="color: #d1d1d1;">
Secondary text remains the same.
</div>
</div>
<div class="contrast-info contrast-pass mt-20">Primary: 5.0:1 - Meets WCAG AA</div>
</div>
</div>
</div>
</div>
<!-- All Status Labels Comparison -->
<div class="section">
<h2>Complete Status Label Comparison</h2>
<p class="mb-20">Comparing all status labels before and after fixes</p>
<div class="theme-tabs">
<button class="theme-tab active" onclick="showTheme('light')">Light Mode</button>
<button class="theme-tab" onclick="showTheme('dark')">Dark Mode</button>
</div>
<div id="light-theme" class="theme-content active">
<h3 class="mb-10">Light Mode - Before & After</h3>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE</div>
<div class="comparison-content light-container">
<div class="label-grid">
<span class="label" style="background: #c41e3a; color: #fff;">Dark Red</span>
<span class="label" style="background: #d64045; color: #fff;">Red</span>
<span class="label" style="background: #2e7d32; color: #fff;">Green</span>
<span class="label" style="background: #1b5e20; color: #fff;">Dark Green</span>
<span class="label" style="background: #f9a825; color: #000;">Yellow</span>
<span class="label" style="background: #1976d2; color: #fff;">Blue</span>
<span class="label" style="background: #0d47a1; color: #fff;">Dark Blue</span>
<span class="label" style="background: #5F0F40; color: #fff;">Purple</span>
<span class="label" style="background: #F26CA7; color: #fff;">Pink ❌</span>
<span class="label" style="background: #BB611B; color: #fff;">Brown</span>
<span class="label" style="background: #aaaaaa; color: #fff;">Grey ❌</span>
<span class="label" style="background: #4c4c4c; color: #fff;">Dark Grey</span>
</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER</div>
<div class="comparison-content light-container">
<div class="label-grid">
<span class="label" style="background: #c41e3a; color: #fff;">Dark Red</span>
<span class="label" style="background: #d64045; color: #fff;">Red</span>
<span class="label" style="background: #2e7d32; color: #fff;">Green</span>
<span class="label" style="background: #1b5e20; color: #fff;">Dark Green</span>
<span class="label" style="background: #f9a825; color: #000;">Yellow</span>
<span class="label" style="background: #1565c0; color: #fff;">Blue ✓</span>
<span class="label" style="background: #0d47a1; color: #fff;">Dark Blue</span>
<span class="label" style="background: #5F0F40; color: #fff;">Purple</span>
<span class="label" style="background: #F26CA7; color: #000;">Pink ✓</span>
<span class="label" style="background: #BB611B; color: #fff;">Brown</span>
<span class="label" style="background: #aaaaaa; color: #000;">Grey ✓</span>
<span class="label" style="background: #4c4c4c; color: #fff;">Dark Grey</span>
</div>
</div>
</div>
</div>
</div>
<div id="dark-theme" class="theme-content">
<h3 class="mb-10">Dark Mode - Before & After</h3>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE</div>
<div class="comparison-content dark-container">
<div class="label-grid">
<span class="label" style="background: #D61B0A; color: #fff;">Dark Red</span>
<span class="label" style="background: #F76C5E; color: #000;">Red</span>
<span class="label" style="background: #32965D; color: #fff;">Green ⚠️</span>
<span class="label" style="background: #1F5C39; color: #fff;">Dark Green</span>
<span class="label" style="background: #FDB833; color: #000;">Yellow</span>
<span class="label" style="background: #1B75BB; color: #fff;">Blue</span>
<span class="label" style="background: #124F7D; color: #fff;">Dark Blue</span>
<span class="label" style="background: #5F0F40; color: #fff;">Purple</span>
<span class="label" style="background: #F26CA7; color: #000;">Pink</span>
<span class="label" style="background: #4C212A; color: #fff;">Brown</span>
<span class="label" style="background: #b0b0b0; color: #000;">Grey</span>
<span class="label" style="background: #707070; color: #fff;">Dark Grey</span>
</div>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER</div>
<div class="comparison-content dark-container">
<div class="label-grid">
<span class="label" style="background: #D61B0A; color: #fff;">Dark Red</span>
<span class="label" style="background: #F76C5E; color: #000;">Red</span>
<span class="label" style="background: #238b47; color: #fff;">Green ✓</span>
<span class="label" style="background: #1F5C39; color: #fff;">Dark Green</span>
<span class="label" style="background: #FDB833; color: #000;">Yellow</span>
<span class="label" style="background: #1B75BB; color: #fff;">Blue</span>
<span class="label" style="background: #124F7D; color: #fff;">Dark Blue</span>
<span class="label" style="background: #5F0F40; color: #fff;">Purple</span>
<span class="label" style="background: #F26CA7; color: #000;">Pink</span>
<span class="label" style="background: #4C212A; color: #fff;">Brown</span>
<span class="label" style="background: #b0b0b0; color: #000;">Grey</span>
<span class="label" style="background: #707070; color: #fff;">Dark Grey</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Neurodiverse Enhancements -->
<div class="section">
<h2>Neurodiverse Accessibility Enhancements</h2>
<p class="mb-20">Additional improvements for ADHD, Autism, and Dyslexia</p>
<div class="info-box neuro">
<strong>Focus on:</strong> Clear visual feedback, consistent patterns, reduced cognitive load, and readable text formatting.
</div>
<h3 class="mb-10 mt-20">Enhanced Focus Indicators (ADHD/Autism)</h3>
<p class="mb-20">Three options ranging from bold to subtle:</p>
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px;">
<!-- Current -->
<div class="comparison-box before">
<div class="comparison-header">CURRENT</div>
<div class="comparison-content dark-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button before-focus" style="background: #0052a3; color: white;">
Button
</button>
<p style="color: #888; margin-top: 15px; font-size: 11px;">2px dark outline<br>Hard to see on dark bg</p>
</div>
</div>
<!-- Option A: Bold -->
<div class="comparison-box after">
<div class="comparison-header">OPTION A: Bold</div>
<div class="comparison-content dark-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button after-focus" style="background: #0052a3; color: white;">
Button
</button>
<p style="color: #888; margin-top: 15px; font-size: 11px;">3px + glow<br>Maximum visibility</p>
</div>
</div>
<!-- Option B: Soft (Recommended) -->
<div class="comparison-box after">
<div class="comparison-header" style="background: #c8e6c9;">OPTION B: Soft ★</div>
<div class="comparison-content dark-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button after-focus-soft" style="background: #0052a3; color: white;">
Button
</button>
<p style="color: #888; margin-top: 15px; font-size: 11px;">2px bright, no glow<br><strong>Recommended</strong></p>
</div>
</div>
<!-- Option C: Minimal (Less Theme) -->
<div class="comparison-box after">
<div class="comparison-header">OPTION C: Minimal</div>
<div class="comparison-content dark-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button after-focus-minimal" style="background: #0052a3; color: white;">
Button
</button>
<p style="color: #888; margin-top: 15px; font-size: 11px;">2px semi-transparent<br>For "Less" theme</p>
</div>
</div>
</div>
<div class="info-box">
<strong>Recommendation:</strong> Use <strong>Option B (Soft)</strong> as the default for the "More" theme, and <strong>Option C (Minimal)</strong> for the "Less" theme. This maintains accessibility while respecting the visual simplicity of each theme.
</div>
<h4 class="mb-10 mt-20">Light Mode Comparison</h4>
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px;">
<!-- Current Light -->
<div class="comparison-box before">
<div class="comparison-header">CURRENT</div>
<div class="comparison-content light-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button" style="background: #004666; color: white; outline: 2px solid #004666; outline-offset: 2px;">
Button
</button>
</div>
</div>
<!-- Option A Light -->
<div class="comparison-box after">
<div class="comparison-header">OPTION A: Bold</div>
<div class="comparison-content light-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button" style="background: #004666; color: white; outline: 3px solid #004666; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(0, 70, 102, 0.15);">
Button
</button>
</div>
</div>
<!-- Option B Light -->
<div class="comparison-box after">
<div class="comparison-header" style="background: #c8e6c9;">OPTION B: Soft ★</div>
<div class="comparison-content light-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button" style="background: #004666; color: white; outline: 2px solid #004666; outline-offset: 2px;">
Button
</button>
</div>
</div>
<!-- Option C Light -->
<div class="comparison-box after">
<div class="comparison-header">OPTION C: Minimal</div>
<div class="comparison-content light-container" style="text-align: center; padding: 30px 15px;">
<button class="focus-button" style="background: #004666; color: white; outline: 2px solid rgba(0, 70, 102, 0.6); outline-offset: 2px;">
Button
</button>
</div>
</div>
</div>
<h3 class="mb-10 mt-20">Text Readability (Dyslexia)</h3>
<div class="comparison">
<div class="comparison-box before">
<div class="comparison-header">BEFORE (Current)</div>
<div class="comparison-content light-container">
<p style="line-height: 1.5; letter-spacing: 0; max-width: none; text-align: justify;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</p>
<p style="font-size: 12px; color: #666; margin-top: 10px;">Line height: 1.5 | Letter spacing: 0 | No max-width | Justified text</p>
</div>
</div>
<div class="comparison-box after">
<div class="comparison-header">AFTER (Dyslexia-Friendly)</div>
<div class="comparison-content light-container">
<p style="line-height: 1.8; letter-spacing: 0.03em; max-width: 65ch; text-align: left; word-spacing: 0.08em;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
</p>
<p style="font-size: 12px; color: #666; margin-top: 10px;">Line height: 1.8 | Letter spacing: 0.03em | Max-width: 65ch | Left-aligned</p>
</div>
</div>
</div>
</div>
<!-- Summary -->
<div class="section">
<h2>Summary of Changes</h2>
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr style="background: #f5f5f5;">
<th style="padding: 12px; text-align: left; border-bottom: 2px solid #ddd;">Issue</th>
<th style="padding: 12px; text-align: left; border-bottom: 2px solid #ddd;">Current</th>
<th style="padding: 12px; text-align: left; border-bottom: 2px solid #ddd;">Proposed</th>
<th style="padding: 12px; text-align: left; border-bottom: 2px solid #ddd;">Impact</th>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #eee;">Grey label text</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#fff (2.3:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#000 (7.0:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee; color: #2e7d32;">+204%</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #eee;">Yellow label (minimal)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#fff (2.1:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#000 (8.5:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee; color: #2e7d32;">+305%</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #eee;">Pink label text</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#fff (3.1:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#000 (5.5:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee; color: #2e7d32;">+77%</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #eee;">Dark mode hover</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#0052a3 (3.4:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#66b3ff (6.8:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee; color: #2e7d32;">+100%</td>
</tr>
<tr>
<td style="padding: 12px; border-bottom: 1px solid #eee;">Grayscale2 primary (dark)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#4a4a4a (1.4:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee;">#a0a0a0 (5.0:1)</td>
<td style="padding: 12px; border-bottom: 1px solid #eee; color: #2e7d32;">+257%</td>
</tr>
</tbody>
</table>
</div>
<script>
function showTheme(theme) {
// Hide all theme content
document.querySelectorAll('.theme-content').forEach(el => {
el.classList.remove('active');
});
// Remove active from all tabs
document.querySelectorAll('.theme-tab').forEach(el => {
el.classList.remove('active');
});
// Show selected theme
document.getElementById(theme + '-theme').classList.add('active');
// Activate selected tab
event.target.classList.add('active');
}
</script>
</body>
</html>