Commit 02b295d
committed
A11y: red selection-fg + dark-mode selection bg & hairline
Tester reported that the new dark-gold selection-fg (the previous iteration) made selected and unselected rows hard to tell apart, even though both passed AA against the bg. Switching to red — Total Commander style — adds a strong hue cue on top of the luminance step, and in dark mode the row also picks up a slightly darker bg + a faint hairline between consecutive selected rows so dense selections stay countable.
- `--color-selection-fg-primary`: `#b60000` (light) and `#ff8c8c` (dark). Light goes from 1.80 → 2.48 diff vs unselected text, with strong hue separation. Dark stays at 1.83 — luminance-wise it's tight, but the new bg and hairline carry the rest of the differentiation.
- `--color-selection-bg`: dark mode only, `#141414` (a touch darker than `--color-bg-primary`). Light keeps the pane bg under selected text.
- `--color-selection-border`: dark mode only, faint fixed gray `rgba(255,255,255,0.10)`. Drawn as an `inset` box-shadow between consecutive selected rows — zero layout impact (row height stays exact). Skipped when the row is under the cursor (cursor is already the strong signal there).
- Zebra stripes auto-disabled on selected rows: `.is-selected`'s `background-color` already wins over `.is-striped` by cascade order.
- Both `FullList.svelte` and `BriefList.svelte` get the new rules.
- Removed `scripts/check-a11y-contrast/red_pick_test.go` (one-shot picker that surfaced the chosen reds; the decision is captured in `app.css` and the candidate evaluator is now in `diff_test.go::TestRedCandidates`).1 parent 069bc40 commit 02b295d
6 files changed
Lines changed: 101 additions & 254 deletions
File tree
- apps/desktop/src
- lib/file-explorer/views
- scripts/check-a11y-contrast
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
497 | 508 | | |
498 | 509 | | |
499 | 510 | | |
500 | | - | |
501 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
502 | 516 | | |
| 517 | + | |
| 518 | + | |
503 | 519 | | |
504 | 520 | | |
505 | 521 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
1002 | 1016 | | |
1003 | 1017 | | |
1004 | 1018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1006 | 1024 | | |
1007 | 1025 | | |
1008 | 1026 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
This file was deleted.
0 commit comments