Contrast: unfocused link chips, drag handle, block hover pill #450

Closed
opened 2026-10-15 17:28:57 +00:00 by kayg · 5 comments
Owner

kayg (2026-10-15): there is not enough contrast on:

  • recognized links and mentions when unfocused: the chip/pill uses the same colour as the page;
  • the block drag handle on the left;
  • the hover pill on the right (open-note → and ⋯).

kayg suggests white icons on the same background for the handle and pill. That still leaves unfocused links. Grill C1–C3 in chat. Mockup with variants, light and dark, over paper and photos. Nothing is merged until kayg approves.

kayg (2026-10-15): there is not enough contrast on: - recognized links and mentions when unfocused: the chip/pill uses the same colour as the page; - the block drag handle on the left; - the hover pill on the right (open-note → and ⋯). kayg suggests white icons on the same background for the handle and pill. That still leaves unfocused links. Grill C1–C3 in chat. Mockup with variants, light and dark, over paper and photos. Nothing is merged until kayg approves.
Author
Owner

Mockup is up: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1. Branch issue/448-links-mockup, PR #453 (mockup, do not merge). It follows C1–C3. The Mockup pill shows the contrast table for the theme and backdrop on screen.

Measured contrast (WCAG ratio, from the worst to the typical spot behind each thing; ✗ means it fails: words need 4.5, icons 3). The script is apps/mockup/scripts/links-contrast.mjs, run in Chromium at 1440 × 900. The colours come from the page's own styles. What is behind each thing is a screenshot of the same box with the words and icon hidden, so blur, glass and photo all count. Opacity and the fade are blended pixel by pixel.

Links when the caret is elsewhere (chip=)

light · paper light · photo, page 0% dark · paper dark · photo, page 0%
icon-accent ★, words 9.2 5.5–6.2 7.3 6.4–7.2
icon-accent ★, icon 9.2 8.2 7.3 4.6
icon-ink, words 14.0 8.3–9.5 12.9 11.4–12.8
icon-ink, icon 14.0 12.4 12.9 8.2
neutral, words 11.8 7.1–8.2 10.2 9.0–10.5
neutral, icon 5.7 5.1 6.6 4.2
today's, words 7.0 6.8–6.9 6.8 7.0–7.3
today's, icon 4.9 4.9 4.6 4.6

Links to a missing note (missing=, #448)

light · paper light · photo, page 0% dark · paper dark · photo, page 0%
icondim ★, words 5.4 5.3 7.0 4.5–4.8
icondim ★, icon 5.4 5.3 7.0 4.5
icon, words 14.0 13.5–13.6 12.9 7.5–8.1
icon, icon 14.0 13.6 12.9 7.3
fade, words 3.2–6.5 ✗ 3.2–6.4 ✗ 4.6–8.0 3.5–5.3 ✗
fade, icon 14.0 13.6 12.9 7.3
dim, words 3.0 ✗ 3.0 ✗ 4.3 ✗ 3.1–3.2 ✗
dim, icon 3.0 3.0 ✗ 4.3 3.1

Drag handle and hover pill (handle=)

light · paper light · photo, page 0% dark · paper dark · photo, page 0%
ink on dense glass ★, handle 14.3–14.4 13.9–14.0 13.7–13.8 11.5–11.6
ink on dense glass ★, pill → ⋯ 14.3–14.4 11.4–11.5 13.6 13.4–13.5
white, handle 1.1 ✗ 1.1 ✗ 16.0 9.2
white, pill → ⋯ 1.1 ✗ 1.1 ✗ 16.0 16.0
today's, handle 2.6 ✗ 2.5 ✗ 3.4 1.9 ✗
today's, pill → ⋯ 6.8 6.8 8.4 8.4

Every recommended look (★) passes everywhere. White icons fail in light (1.1:1), and today's handle fails in light and over a dark photo (1.9–2.6:1). In dark, today's icon-only chip icons are 4.6, which passes but is the faintest of the four.

Links: icon-accent ★, icon-ink, neutral and today's, light and dark, plus icon-accent over a photo (the first block is hovered, to show the handle and pill)
sheet-chips.png

Handle and pill: ink on dense glass ★, white, today's × light/dark × paper/photo
sheet-handles.png

iPhone checklist (headless WebKit here draws no backdrop blur, so the glass needs a real device):

  • Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width.
  • Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read).
  • The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere.
  • With the keyboard up, the #, @ and [[ picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up.
  • Space after a tag closes the picker. "issue #12" never opens it.
  • The picker and card glass blurs the words behind it and reads clearly over the photo (&over=photo&backdrop=photo).
  • The handle and pill are hidden on touch, as today: check them on an iPad with a trackpad or on a Mac.
  • A long press on a link does not open the system link preview over the card.
**Mockup is up: https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1**. Branch `issue/448-links-mockup`, PR #453 (mockup, do not merge). It follows C1–C3. The Mockup pill shows the contrast table for the theme and backdrop on screen. - `chip` (links when the caret is elsewhere; the pill appears on hover or with the caret inside): [icon-accent ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1) · [icon-ink](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&chip=icon-ink&hover=@1) · [neutral](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&chip=neutral&hover=@1) · [current](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&chip=current&hover=@1) - `handle`: [ink on dense glass ★](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1) · [white](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&handle=white&hover=@1) · [current](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&handle=current&hover=@1) - `over`: [plain paper](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1) · [photo, page at 0%](https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&over=photo&backdrop=photo&hover=@1). Add `&theme=light` or `&theme=dark`. **Measured contrast** (WCAG ratio, from the worst to the typical spot behind each thing; ✗ means it fails: words need 4.5, icons 3). The script is `apps/mockup/scripts/links-contrast.mjs`, run in Chromium at 1440 × 900. The colours come from the page's own styles. What is behind each thing is a screenshot of the same box with the words and icon hidden, so blur, glass and photo all count. Opacity and the fade are blended pixel by pixel. **Links when the caret is elsewhere (`chip=`)** | | light · paper | light · photo, page 0% | dark · paper | dark · photo, page 0% | |---|---|---|---|---| | icon-accent ★, words | 9.2 | 5.5–6.2 | 7.3 | 6.4–7.2 | | icon-accent ★, icon | 9.2 | 8.2 | 7.3 | 4.6 | | icon-ink, words | 14.0 | 8.3–9.5 | 12.9 | 11.4–12.8 | | icon-ink, icon | 14.0 | 12.4 | 12.9 | 8.2 | | neutral, words | 11.8 | 7.1–8.2 | 10.2 | 9.0–10.5 | | neutral, icon | 5.7 | 5.1 | 6.6 | 4.2 | | today's, words | 7.0 | 6.8–6.9 | 6.8 | 7.0–7.3 | | today's, icon | 4.9 | 4.9 | 4.6 | 4.6 | **Links to a missing note (`missing=`, #448)** | | light · paper | light · photo, page 0% | dark · paper | dark · photo, page 0% | |---|---|---|---|---| | icondim ★, words | 5.4 | 5.3 | 7.0 | 4.5–4.8 | | icondim ★, icon | 5.4 | 5.3 | 7.0 | 4.5 | | icon, words | 14.0 | 13.5–13.6 | 12.9 | 7.5–8.1 | | icon, icon | 14.0 | 13.6 | 12.9 | 7.3 | | fade, words | 3.2–6.5 ✗ | 3.2–6.4 ✗ | 4.6–8.0 | 3.5–5.3 ✗ | | fade, icon | 14.0 | 13.6 | 12.9 | 7.3 | | dim, words | 3.0 ✗ | 3.0 ✗ | 4.3 ✗ | 3.1–3.2 ✗ | | dim, icon | 3.0 | 3.0 ✗ | 4.3 | 3.1 | **Drag handle and hover pill (`handle=`)** | | light · paper | light · photo, page 0% | dark · paper | dark · photo, page 0% | |---|---|---|---|---| | ink on dense glass ★, handle | 14.3–14.4 | 13.9–14.0 | 13.7–13.8 | 11.5–11.6 | | ink on dense glass ★, pill → ⋯ | 14.3–14.4 | 11.4–11.5 | 13.6 | 13.4–13.5 | | white, handle | 1.1 ✗ | 1.1 ✗ | 16.0 | 9.2 | | white, pill → ⋯ | 1.1 ✗ | 1.1 ✗ | 16.0 | 16.0 | | today's, handle | 2.6 ✗ | 2.5 ✗ | 3.4 | 1.9 ✗ | | today's, pill → ⋯ | 6.8 | 6.8 | 8.4 | 8.4 | Every recommended look (★) passes everywhere. White icons fail in light (1.1:1), and today's handle fails in light and over a dark photo (1.9–2.6:1). In dark, today's icon-only chip icons are 4.6, which passes but is the faintest of the four. **Links: icon-accent ★, icon-ink, neutral and today's, light and dark, plus icon-accent over a photo (the first block is hovered, to show the handle and pill)** ![sheet-chips.png](https://git.kayg.org/attachments/a35db4d5-e681-4509-be6f-2fc309c0243a) **Handle and pill: ink on dense glass ★, white, today's × light/dark × paper/photo** ![sheet-handles.png](https://git.kayg.org/attachments/058c7933-7427-4fb7-8807-4891763ec7bd) **iPhone checklist** (headless WebKit here draws no backdrop blur, so the glass needs a real device): - [ ] Open the page in Safari and from the Home Screen. Light and dark. Nothing scrolls sideways at any width. - [ ] Tap each link: never written (the note is made and opens, and Undo brings you back), Trash (card), deleted (card), moved (opens Books to read). - [ ] The card sits under the link, or above it near the bottom, stays clear of the notch and the home indicator, and closes when you tap elsewhere. - [ ] With the keyboard up, the `#`, `@` and `[[` picker sits above the keyboard, with no zoom and no jump. Tapping a row puts it in and keeps the keyboard up. - [ ] Space after a tag closes the picker. "issue #12" never opens it. - [ ] The picker and card glass blurs the words behind it and reads clearly over the photo (`&over=photo&backdrop=photo`). - [ ] The handle and pill are hidden on touch, as today: check them on an iPad with a trackpad or on a Mac. - [ ] A long press on a link does not open the system link preview over the card.
Author
Owner

Approval round live (https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1), PR #457. chip=icon-accent and handle=ink are the defaults. The handle and pill now use the shared #319 glass class (float-glass-behind dense, from origin/issue/319-one-glass) instead of a copy of its tokens. I re-measured on the deployed build, and the numbers are unchanged. Worst spot, light paper / light photo / dark paper / dark photo:

  • icon-accent words: 9.2 / 5.5 / 7.3 / 6.5
  • icon-accent icon: 9.2 / 8.2 / 7.3 / 4.6
  • ink handle: 14.3 / 13.9 / 13.7 / 11.5
  • ink pill: 14.3 / 11.4 / 13.6 / 13.4

Everything passes (words ≥ 4.5, icons ≥ 3). The link spacing fix (no gap before the punctuation) is on #448.

Approval round live (https://preview.calternal.cloud/links.html#/note/links-and-tags?list=all&hover=@1), PR #457. `chip=icon-accent` and `handle=ink` are the defaults. The handle and pill now use the shared #319 glass class (`float-glass-behind dense`, from `origin/issue/319-one-glass`) instead of a copy of its tokens. I re-measured on the deployed build, and the numbers are unchanged. Worst spot, light paper / light photo / dark paper / dark photo: - icon-accent words: 9.2 / 5.5 / 7.3 / 6.5 - icon-accent icon: 9.2 / 8.2 / 7.3 / 4.6 - ink handle: 14.3 / 13.9 / 13.7 / 11.5 - ink pill: 14.3 / 11.4 / 13.6 / 13.4 Everything passes (words ≥ 4.5, icons ≥ 3). The link spacing fix (no gap before the punctuation) is on #448.
Author
Owner

Built into the app on branch issue/448-links-app (one PR with #448 and #449; not to be merged without kayg). chip=icon-accent and handle=ink, as approved.

  • Links at rest: no pill, no underline; a kind icon (note, day, photo, file, web) and the words in a deep tint of the accent. The pill shows on hover or with the caret inside; its room is always there, so nothing moves, and nothing sits between a link and the full stop after it (tests measure both).
  • The drag handle and the → ⋯ pill: full-ink icons on the dense floating glass (float-glass-behind dense, given by the app through a new surface option of the margin controls).

Measured (apps/web/e2e/link-contrast.spec.ts, in the contrast project: the page photographed as it is and with the measured things invisible; worst spot over the pixels the words or icon cover, 5th percentile as the mockup was measured):

light · paper dark · paper light · photo, page 0% dark · photo, page 0%
link words / icon 9.2 / 9.2 7.3 / 7.3 9.0 / 9.1 6.1 / 6.1
never written, words / icon 5.4 / 5.4 7.0 / 7.0 4.9 / 5.6 6.3 / 5.7
in the Trash, words / icon 5.4 / 5.4 7.0 / 7.0 5.0 / 4.9 6.3 / 6.4
handle / → / ⋯ 14.3 / 14.3 / 14.3 13.7 / 13.5 / 13.5 13.4 / 10.0 / 10.3 7.8 / 9.5 / 9.4

For kayg to judge: over the app's mountain photo with the page at 0%, the approved no-pill look measured 1.2–1.5:1 at its worst spots (dark: accent words over the misty sky; light: ink over the dark hill). So on pages under 30% opacity only, a link sits on a soft wash of paper (no edge, no shadow, not the accent pill); on paper nothing changes. The editor's own text now also gets the faint-page halo it was meant to have (it had targeted the mockup's .body, not the editor). The other choice would be the approved look everywhere and accepting the lower numbers over busy photos.

Hover (handle and pill) and the caret in a link, light and dark
handles.png

Over a photo, page at 0%, light and dark, 1440 and 390
photo.png

**Built into the app** on branch `issue/448-links-app` (one PR with #448 and #449; not to be merged without kayg). `chip=icon-accent` and `handle=ink`, as approved. - Links at rest: no pill, no underline; a kind icon (note, day, photo, file, web) and the words in a deep tint of the accent. The pill shows on hover or with the caret inside; its room is always there, so nothing moves, and nothing sits between a link and the full stop after it (tests measure both). - The drag handle and the → ⋯ pill: full-ink icons on the dense floating glass (`float-glass-behind dense`, given by the app through a new `surface` option of the margin controls). **Measured** (`apps/web/e2e/link-contrast.spec.ts`, in the contrast project: the page photographed as it is and with the measured things invisible; worst spot over the pixels the words or icon cover, 5th percentile as the mockup was measured): | | light · paper | dark · paper | light · photo, page 0% | dark · photo, page 0% | |---|---|---|---|---| | link words / icon | 9.2 / 9.2 | 7.3 / 7.3 | 9.0 / 9.1 | 6.1 / 6.1 | | never written, words / icon | 5.4 / 5.4 | 7.0 / 7.0 | 4.9 / 5.6 | 6.3 / 5.7 | | in the Trash, words / icon | 5.4 / 5.4 | 7.0 / 7.0 | 5.0 / 4.9 | 6.3 / 6.4 | | handle / → / ⋯ | 14.3 / 14.3 / 14.3 | 13.7 / 13.5 / 13.5 | 13.4 / 10.0 / 10.3 | 7.8 / 9.5 / 9.4 | **For kayg to judge:** over the app's mountain photo with the page at 0%, the approved no-pill look measured 1.2–1.5:1 at its worst spots (dark: accent words over the misty sky; light: ink over the dark hill). So on pages under 30% opacity only, a link sits on a soft wash of paper (no edge, no shadow, not the accent pill); on paper nothing changes. The editor's own text now also gets the faint-page halo it was meant to have (it had targeted the mockup's `.body`, not the editor). The other choice would be the approved look everywhere and accepting the lower numbers over busy photos. **Hover (handle and pill) and the caret in a link, light and dark** ![handles.png](https://git.kayg.org/attachments/16f4f8b5-0cbe-430c-b828-8e5028881765) **Over a photo, page at 0%, light and dark, 1440 and 390** ![photo.png](https://git.kayg.org/attachments/920a3d32-5a87-4869-aee3-d70cc4204d8a)
Author
Owner

PR #464 (into dev, closes #448, #449, #450; not to be merged without kayg). Rebased on dev after the 16o train landed.

One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.

PR #464 (into dev, closes #448, #449, #450; **not to be merged without kayg**). Rebased on dev after the 16o train landed. One fix after the screenshots above: on a phone, following a link now lets the keyboard go (the editor is one view for every note, so the tapped caret came along and the text bar swept the “Made” toast and its Undo away). Cards keep the caret to come back to.
Author
Owner

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

Closing during the 26 Oct handover cleanup: The contrast fixes landed in dev (PRs #496, #513, #562).
kayg closed this issue 2026-10-26 08:46:30 +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#450
No description provided.