Check text and code on the selection fill
Source draws search matches and selection matches with the item selection fill, behind code. No rule checked that surface. In four core palettes, code colors were 3.8:1 to 4.3:1 on it, and dim text in a selected row was 4.0:1 in two light palettes. - The text rule also checks the item selection fill over bg-elevated. The syntax rule also checks the fill over bg (UI-046). - The derived fill is the accent at 12%, not 20%. RuneStone, Claude, and custom themes without their own fill use it. Sakura and the character themes set their own fill and pass. - Matches keep their underline, and selected rows keep their outline. pnpm check passes. pnpm test: 446 of 446 pass. Full smoke suite: 92 passed, 2 known. Three tests failed one time while Vite compiled the changed modules, and passed on retry and 3 of 3 times alone.
This commit is contained in:
+2
-2
@@ -72,10 +72,10 @@ Each surface is the color that the app draws: a translucent role is composited o
|
||||
|
||||
| Rule | Check | Minimum |
|
||||
| --- | --- | --- |
|
||||
| `text` | `text`, `text-dim`, and `text-strong` on `bg`, `bg-elevated`, `bg-active`, and `selection` | 4.5:1 |
|
||||
| `text` | `text`, `text-dim`, and `text-strong` on `bg`, `bg-elevated`, `bg-active`, `selection`, and the item selection fill over `bg-elevated` | 4.5:1 |
|
||||
| `accent-text` | `accent`, `accent-2`, and `link` on `bg`, `bg-elevated`, and `bg-active` | 4.5:1 |
|
||||
| `status-text` | `error`, `warn`, and `ok` on `bg` and `bg-elevated` | 4.5:1 |
|
||||
| `syntax` | Each syntax role on `bg`, `bg-active`, and `line-highlight` | 4.5:1 |
|
||||
| `syntax` | Each syntax role on `bg`, `bg-active`, `line-highlight`, and the item selection fill over `bg` (search and selection matches in Source) | 4.5:1 |
|
||||
| `ansi` | Red, green, yellow, blue, magenta, and cyan terminal colors, and their bright variants, on `bg` | 4.5:1 |
|
||||
| `focus` | `focus` on `bg`, `bg-elevated`, and `bg-active` | 3:1 |
|
||||
| `on-accent` | `on-accent` on `accent` | 4.5:1 |
|
||||
|
||||
Reference in New Issue
Block a user