Commit 7dbd712
fix(a11y): fix 4 Lighthouse accessibility failures blocking CI
Based on Lighthouse report artifact analysis, 4 weighted audits were
failing on /playground:
1. aria-input-field-name (weight=7): CodeMirror's cm-content[role=textbox]
had no accessible name. Fixed with EditorView.contentAttributes.of()
to pass aria-label directly to the cm-content element.
2. color-contrast (weight=7): oneDark theme's coral (#e06c75) on #282c34
background yields 4.38:1 ratio (fails WCAG AA 4.5:1). Override with
custom HighlightStyle (#e87980 → ~5.07:1 contrast) placed before
oneDark for higher CM6 precedence.
3. heading-order (weight=3): Footer h3 elements skipped h2 after h1 in
Playground, failing sequential heading order. Changed footer section
labels from h3 to h2.
4. image-redundant-alt (weight=1): Logo images had alt="GoSQLX" while
parent links also contained "GoSQLX" text (redundant). Changed to
alt="" (decorative) in Navbar and Footer.
Also adds @lezer/highlight as direct dependency (was transitive).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b3a6848 commit 7dbd712
4 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
| |||
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| 99 | + | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
0 commit comments