Commit 31b0ea4
fix(website): fix Lighthouse a11y failures — code contrast + select label
Two specific Lighthouse accessibility failures from the CI report:
1. color-contrast (2.17:1): The <code> inside MiniPlayground's output
<pre> had text-zinc-300 which got overridden to dark gray (#4B5563)
by the global light mode CSS, but the <pre> bg stays dark (#1E1E2E).
Fix: use inline style={{ color: '#D4D4D8' }} on all code-block
<pre> and <textarea> elements so the color can't be overridden.
2. select-name: The dialect <select> was wrapped in a <label> with no
visible text. Lighthouse couldn't associate them.
Fix: add explicit <label> with "Dialect:" text + aria-label on select.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3437c12 commit 31b0ea4
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | | - | |
| 155 | + | |
| 156 | + | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| |||
196 | 199 | | |
197 | 200 | | |
198 | 201 | | |
199 | | - | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
203 | | - | |
| 206 | + | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
| |||
0 commit comments