Commit 39ca479
* fix: restore GFM table rendering in .mdx docs
Astro 6.4.x regression (withastro/astro#16971) drops the markdown.gfm
default for .mdx files specifically, so every table in the block docs
(e.g. GitAuth's Providers table) silently rendered as raw pipe text
instead of an HTML table. Set gfm: true explicitly to work around it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix: resolve WCAG AA color-contrast failures across docs theme
Audited every page in both light and dark themes with axe-core; these
were the failures found, all fixed in place with colors already in
the palette where possible:
- --sl-color-gray-3 (dark) was 3.66:1 against the page background,
failing normal-text AA. It backs Starlight's footer/edit-link text
plus our TOC and homepage muted text, so this was the widest-reaching
fix. Lightened to hit 4.5:1+ against both the page bg and gray-7.
- .source-link (dark) used the border-tuned gray-4 for text (2.29:1);
switched to gray-3.
- The hero "Get Started" button's white text on the dark accent blue
was 3.68:1; scoped a darker blue to that button only so the shared
accent variable (fine everywhere else) doesn't need to change.
- A prior gray-6 (dark) tweak aimed at "better backgrounds" had
lightened the Expressive Code editor background enough to drop the
built-in syntax theme's comment/keyword/string colors below AA.
Reverted to the original value, close to the theme's own reference
background.
- Links inside colored callout boxes (tip/caution/danger asides)
didn't have enough contrast against every variant's tint, in both
themes. Added a scoped override.
- Inline <code> inside links was 4.38:1 in light mode, just under the
4.5:1 threshold; switched to the darker accent-high tone.
- Footer.astro: the decorative "·" separator used a border-tuned
color; matched it to the surrounding footer text color instead.
Verified with axe-core (WCAG 2 AA) against all 41 docs pages in both
themes: 0 remaining color-contrast violations.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 16372cb commit 39ca479
3 files changed
Lines changed: 49 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
8 | 16 | | |
9 | 17 | | |
10 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
204 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
205 | 213 | | |
206 | | - | |
| 214 | + | |
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
| |||
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
290 | 311 | | |
291 | 312 | | |
292 | 313 | | |
| |||
418 | 439 | | |
419 | 440 | | |
420 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
421 | 451 | | |
422 | 452 | | |
423 | 453 | | |
| |||
522 | 552 | | |
523 | 553 | | |
524 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
525 | 561 | | |
526 | 562 | | |
527 | 563 | | |
| |||
0 commit comments