PageToolbar: .hl hover/press layer instant after a key #1131

Closed
kayg wants to merge 0 commits from port/notes-float-hl-instant into port/notes-float
Owner

Keyboard actions must be instant: the page toolbar's i.hl press/hover layer had an opacity transition that e2e/keys-no-motion caught (4 cases, chromium-1440/390).

Fix: data-instant={instant()} on the .hl element in PageToolbar.svelte (the same per-element mechanism Pill uses; base.css answers [data-instant] with transition-duration: 0s). The .gb::before hover layer already sits on a Pill that carries data-instant, so it needed nothing. Mouse hover/press is unchanged (attribute is absent after a pointer).

Gates (dev-01, std is down; server built from base ff3b43cfc, head 2e326b222):

  • playwright test keys-no-motion toolbar-slot note-pills pill-press pill-room --project=chromium-1440 --project=chromium-390 --workers=1 --retries=0: 64 passed, 26 skipped, 0 failed
  • bun run check: 0 errors (20 existing warnings); bun run test (vitest): passes
  • bundle gate: total_js_brotli 547.027 KB vs base 547.470 (smaller); index/hidden-ui chunks over their budget by 0.008/0.002 KB, but the base is already over by more (index 231.672, plus code-javascript), so not introduced here.

No perf run: markup attribute plus a transition-duration override on one element; no layout, JS hot path or paint change, and it only removes a transition after a key.

Not merged.

🤖 Generated with Claude Code

Keyboard actions must be instant: the page toolbar's `i.hl` press/hover layer had an opacity transition that `e2e/keys-no-motion` caught (4 cases, chromium-1440/390). Fix: `data-instant={instant()}` on the `.hl` element in `PageToolbar.svelte` (the same per-element mechanism Pill uses; base.css answers `[data-instant]` with `transition-duration: 0s`). The `.gb::before` hover layer already sits on a Pill that carries `data-instant`, so it needed nothing. Mouse hover/press is unchanged (attribute is absent after a pointer). Gates (dev-01, std is down; server built from base ff3b43cfc, head 2e326b222): - `playwright test keys-no-motion toolbar-slot note-pills pill-press pill-room --project=chromium-1440 --project=chromium-390 --workers=1 --retries=0`: 64 passed, 26 skipped, 0 failed - `bun run check`: 0 errors (20 existing warnings); `bun run test` (vitest): passes - bundle gate: total_js_brotli 547.027 KB vs base 547.470 (smaller); index/hidden-ui chunks over their budget by 0.008/0.002 KB, but the base is already over by more (index 231.672, plus code-javascript), so not introduced here. No perf run: markup attribute plus a transition-duration override on one element; no layout, JS hot path or paint change, and it only removes a transition after a key. Not merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
PageToolbar: .hl hover/press layer instant after a key
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
2e326b2224
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Merged into port/notes-float with --no-ff by the orchestrator (one attribute; keys-no-motion green on chromium). Closing.

Merged into `port/notes-float` with `--no-ff` by the orchestrator (one attribute; keys-no-motion green on chromium). Closing.
kayg closed this pull request 2026-11-14 11:38:52 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
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!1131
No description provided.