Commit b1512ab
fix(docs): visible admonition icons in dark mode (#516 follow-up)
The asciidoctor stylesheet hardcodes dark admonition icon colors (note
#19407c, tip #111, important #bf0000, warning/caution dark warm tones)
that nearly vanish on the dark #1f2937 panel — measured contrast 1.3-2.3:1,
below the 3:1 WCAG threshold for non-text. Add dark-scoped overrides to
light, semantic colours (note blue, tip green, warning amber, caution
orange, important red); contrast now 5-8:1. Light mode unchanged.
Note: Lighthouse reports Accessibility 100 but only audits the default
(light) theme — dark mode is a class toggle it never triggers — so these
dark-mode contrast issues are invisible to it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 457c183 commit b1512ab
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
414 | 434 | | |
415 | 435 | | |
416 | 436 | | |
| |||
0 commit comments