Contrast: the Filter placeholder fails AA almost everywhere, and the light theme at night turns the phone list into grey fog #345

Closed
opened 2026-10-14 19:16:29 +00:00 by kayg · 4 comments
Owner

Where: app, list pane (desktop) and list screen (phone). Numbers are WCAG contrast of the real text colour over the real pixels behind it (sampled from screenshots).

1. "Filter" placeholder. It uses the browser's default grey (117, 117, 117) on glass:

Width Theme / backdrop Contrast
390 light, sky 2.06
1440 light, sky 2.63
1440 light, photo 4.12
1440 light, plain 4.02
1440 dark, photo 1.89
1440 dark, sky / plain 3.60 / 3.43
390 dark, sky 3.43

In WebKit at 390 light the placeholder is almost invisible. The target is 4.5:1 in every case.

2. Light theme while the sky is night. With the light theme and the default sky backdrop after dusk, the phone list is a flat grey-lilac wash: the row text sits on about rgb(183,184,194) and the second line is only 4.99:1. The same screen in dark looks great (10:1). The glass is tinted light over a dark sky, which gives the worst of both. (Same wash on the Trash and Pinned screens.)

3. Meta text over a photo in dark is 6.4:1 (list second line) and 8.0:1 (sidebar rows). Fine, but it is the weakest passing case, so it is worth keeping an eye on if the glass gets more see-through (#319).

Suggested fix: give the placeholder its own token (muted ink at 4.5:1 or more on glass, per theme); when the theme is light and the sky is night, use the dusk or dawn palette for the backdrop, or darken the glass tint less in light mode so the sky does not show through as grey. Add the placeholder to contrast.spec.ts.

Found in kayg's overnight UI/UX hunt (#174). App = apps/web at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.

**Where:** app, list pane (desktop) and list screen (phone). Numbers are WCAG contrast of the real text colour over the real pixels behind it (sampled from screenshots). **1. "Filter" placeholder.** It uses the browser's default grey (117, 117, 117) on glass: | Width | Theme / backdrop | Contrast | |---|---|---| | 390 | light, sky | **2.06** | | 1440 | light, sky | **2.63** | | 1440 | light, photo | 4.12 | | 1440 | light, plain | 4.02 | | 1440 | dark, photo | **1.89** | | 1440 | dark, sky / plain | 3.60 / 3.43 | | 390 | dark, sky | 3.43 | In WebKit at 390 light the placeholder is almost invisible. The target is 4.5:1 in every case. **2. Light theme while the sky is night.** With the light theme and the default sky backdrop after dusk, the phone list is a flat grey-lilac wash: the row text sits on about rgb(183,184,194) and the second line is only 4.99:1. The same screen in dark looks great (10:1). The glass is tinted light over a dark sky, which gives the worst of both. (Same wash on the Trash and Pinned screens.) **3. Meta text over a photo in dark** is 6.4:1 (list second line) and 8.0:1 (sidebar rows). Fine, but it is the weakest passing case, so it is worth keeping an eye on if the glass gets more see-through (#319). **Suggested fix:** give the placeholder its own token (muted ink at 4.5:1 or more on glass, per theme); when the theme is light and the sky is night, use the dusk or dawn palette for the backdrop, or darken the glass tint less in light mode so the sky does not show through as grey. Add the placeholder to `contrast.spec.ts`. Found in kayg's overnight UI/UX hunt (#174). App = `apps/web` at train commit 2ea759c, run locally against the real server with a development user; mockup = https://preview.calternal.cloud.
Author
Owner

Screenshots (all taken tonight, Chromium unless it says WebKit):

390 light, sky at night: grey fog, Filter placeholder 2.06:1
list-390-light.png

390 dark, same screen: fine
list-390-dark.png

WebKit 390 light: the Filter placeholder is nearly gone
webkit-list-390.png

1440 dark over the photo backdrop: Filter placeholder 1.89:1
photo-1440-dark.png

1440 light over the sky: Filter placeholder 2.63:1
sky-1440-light.png

Screenshots (all taken tonight, Chromium unless it says WebKit): **390 light, sky at night: grey fog, Filter placeholder 2.06:1** ![list-390-light.png](https://git.kayg.org/attachments/e528fe00-54ac-4b10-acba-8164398831b0) **390 dark, same screen: fine** ![list-390-dark.png](https://git.kayg.org/attachments/3bc5e67e-8e31-402a-8884-47d5e375b140) **WebKit 390 light: the Filter placeholder is nearly gone** ![webkit-list-390.png](https://git.kayg.org/attachments/7d2e1157-4b95-4e42-ad61-d88dbd7afe7f) **1440 dark over the photo backdrop: Filter placeholder 1.89:1** ![photo-1440-dark.png](https://git.kayg.org/attachments/3d658552-0c0d-436a-ab42-f9aafa23d5b7) **1440 light over the sky: Filter placeholder 2.63:1** ![sky-1440-light.png](https://git.kayg.org/attachments/2d50e316-f7b3-4c13-8dc5-53f1ce42455d)
Author
Owner

After: the Filter hint and the lists, light and dark, 320/390/1440, Chromium and WebKit (real server, development build of this branch).

390 light, sky at night: list (Chromium) and the same in WebKit

final-chromium-390-light-list-night.png final-webkit-390-light-list-night.png

390 dark, sky at night: list (Chromium) and the same in WebKit

final-chromium-390-dark-list-night.png final-webkit-390-dark-list-night.png

320 light, sky at night: list (Chromium) and the same in WebKit

final-chromium-320-light-list-night.png final-webkit-320-light-list-night.png

320 dark, sky at night: list (Chromium) and the same in WebKit

final-chromium-320-dark-list-night.png final-webkit-320-dark-list-night.png

1440 light, sky at night: list (Chromium) and the same in WebKit

final-chromium-1440-light-list-night.png final-webkit-1440-light-list-night.png

1440 dark, sky at night: list (Chromium) and the same in WebKit

final-chromium-1440-dark-list-night.png final-webkit-1440-dark-list-night.png

After: the Filter hint and the lists, light and dark, 320/390/1440, Chromium and WebKit (real server, development build of this branch). **390 light, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-390-light-list-night.png](https://git.kayg.org/attachments/3abef467-1f47-41b1-ba4f-8bcc954f0ee3) ![final-webkit-390-light-list-night.png](https://git.kayg.org/attachments/c61cf078-ef24-4031-916d-1376f01c5c16) **390 dark, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-390-dark-list-night.png](https://git.kayg.org/attachments/1636dfb3-1b0a-4276-893b-4db2ab9a9e32) ![final-webkit-390-dark-list-night.png](https://git.kayg.org/attachments/38464dc0-ac4b-4cdc-936d-0b1ea75b05db) **320 light, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-320-light-list-night.png](https://git.kayg.org/attachments/71542bca-bbf8-4323-b7bc-b641b647bd91) ![final-webkit-320-light-list-night.png](https://git.kayg.org/attachments/5e42bd88-ea25-435c-abd7-f9ceb04caa3d) **320 dark, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-320-dark-list-night.png](https://git.kayg.org/attachments/68290b02-55f8-4e86-87e2-89c3b295ba82) ![final-webkit-320-dark-list-night.png](https://git.kayg.org/attachments/53e00de3-0349-47bf-8596-2e21cac65b8f) **1440 light, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-1440-light-list-night.png](https://git.kayg.org/attachments/cb1a3e64-d354-480a-9a92-562fdbcb3349) ![final-webkit-1440-light-list-night.png](https://git.kayg.org/attachments/dbe9269a-8a34-4d2b-ac48-a8ff1172d07f) **1440 dark, sky at night: list (Chromium) and the same in WebKit** ![final-chromium-1440-dark-list-night.png](https://git.kayg.org/attachments/a2ad974e-c615-4a40-97c7-9701321c1792) ![final-webkit-1440-dark-list-night.png](https://git.kayg.org/attachments/66b4a1be-e7dc-4c01-bf67-07ba275f5c2b)
Author
Owner

PR: #393

Measured with e2e/contrast.spec.ts (real pixels behind each glyph, every sky hour, light and dark):

Case Before After
Filter hint, wide (browser grey put back for the check) 2.24 at light/dawn, fails at least 4.72
Filter hint, phone 320/390 (issue: 2.06 to 3.43) at least 4.72
Weakest other text, all lists and screens 4.99 (light, night, phone) 5.12

The light theme at night/dusk now has a thicker, warmer tint plus a brightness lift, so the phone's lists read as cream instead of grey-lilac (screenshots above). Day looks are unchanged. Tokens: --placeholder, --glass-placeholder, --glass-lift (tokens.css).

PR: https://git.kayg.org/kayg/calternal/pulls/393 Measured with `e2e/contrast.spec.ts` (real pixels behind each glyph, every sky hour, light and dark): | Case | Before | After | |---|---|---| | Filter hint, wide (browser grey put back for the check) | 2.24 at light/dawn, fails | at least 4.72 | | Filter hint, phone 320/390 | (issue: 2.06 to 3.43) | at least 4.72 | | Weakest other text, all lists and screens | 4.99 (light, night, phone) | 5.12 | The light theme at night/dusk now has a thicker, warmer tint plus a brightness lift, so the phone's lists read as cream instead of grey-lilac (screenshots above). Day looks are unchanged. Tokens: `--placeholder`, `--glass-placeholder`, `--glass-lift` (tokens.css).
Author
Owner

Closing during the 26 Oct handover cleanup: The contrast fixes landed in dev (PRs #393, #401).

Closing during the 26 Oct handover cleanup: The contrast fixes landed in dev (PRs #393, #401).
kayg closed this issue 2026-10-26 08:46:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#345
No description provided.