Commit 16c7244
fix(a11y): readable API-reference text in light theme
ApiMethod rendered the signature function-name and ParamRow type using the
code-surface syntax tokens (--eld-syntax-function pale yellow, --eld-syntax-type
teal). Those are tuned for the always-dark code surface and become unreadable on
the light page background. Use theme-aware tokens: the signature name -> the
--primary-emphasis accent, the param type -> muted-foreground. Clears the
remaining light-theme color-contrast violations (Chromatic tests both themes).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 982730f commit 16c7244
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments