Skip to content

Commit 2748e8f

Browse files
committed
fix(a11y): fix remaining contrast failures in table and badges
Darken doc hash, type/topic badge text, confidence colors, and language bar overflow text to pass WCAG AA 4.5:1 on their respective backgrounds.
1 parent e449c91 commit 2748e8f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

apps/web/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
.dtable .fhash {
499499
font-family: 'JetBrains Mono', monospace;
500500
font-size: 0.68rem;
501-
color: #ccc;
501+
color: #6B7280;
502502
}
503503

504504
.doc-link {
@@ -525,12 +525,12 @@
525525

526526
.label-type {
527527
background: #fef0ee;
528-
color: #C9493D;
528+
color: #A3362B;
529529
}
530530

531531
.label-topic {
532532
background: #f0f4ff;
533-
color: #6b8cce;
533+
color: #4A6BA8;
534534
}
535535

536536
.mono {
@@ -540,11 +540,11 @@
540540
}
541541

542542
.conf-g {
543-
color: #059669;
543+
color: #047857;
544544
}
545545

546546
.conf-y {
547-
color: #d97706;
547+
color: #b45309;
548548
}
549549

550550
.conf-r {
@@ -1331,7 +1331,7 @@ <h1>The largest open corpus of classified Word documents</h1>
13311331
langHtml += `<div class="lang-bar${active ? ' lang-active' : ''}" style="flex:${l.percentage};background:${color}" data-lang="${l.code}" title="${l.name} ${l.percentage}%">${l.code.toUpperCase()}</div>`;
13321332
});
13331333
if (otherPct > 0) {
1334-
langHtml += `<div class="lang-bar" style="flex:${otherPct};background:#d0d0d0;color:#888;font-size:0.6rem">+${languages.length - 10}</div>`;
1334+
langHtml += `<div class="lang-bar" style="flex:${otherPct};background:#d0d0d0;color:#4B5563;font-size:0.6rem">+${languages.length - 10}</div>`;
13351335
}
13361336

13371337
// Legend: ALL languages, clickable

0 commit comments

Comments
 (0)