Repository navigation
fix(time): hide the comark-time tooltip on Escape - #443
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
ℹ️ No P0 or P1 findings; one modal-host edge case is noted inline.
Reviewed changes — Reviewed the Escape-dismissal runtime, its integration across all four renderers, CSS behavior, documentation, and regression coverage.
- Dismissal lifecycle: A shared client runtime hides focused or hovered time tooltips on Escape and resets dismissal after focus and the pointer leave.
- Renderer integration: HTML emits and exposes the inline script for CSP, while Vue, React, and Svelte start and clean up the shared runtime through their lifecycle hooks.
- Coverage and documentation: Browser tests exercise dismissal and reopening, the preset script test includes time, and the package documentation describes the new behavior.
- Validation: The workspace build, TypeScript check, time Doctor, all six time browser tests, and 459 time/UI package tests passed, with one test skipped; an additional native-dialog browser check reproduced the inline finding.
gpt-6.1-sol(xhigh) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. Ready under the repair policy: current-head checks pass and no P0/P1 findings remain. Verified the P2 native-dialog Escape interaction in code and declined it because a P2-only repair push is prohibited; the thread is resolved. No files changed. Local browser reproduction was unavailable because Playwright Chromium is missing. |

A
:timetooltip opens on focus or hover and only closes when focus or the pointer leaves. Escape does nothing, so a keyboard user who wants to read the text under the pill has to tab away. WCAG 1.4.13 asks for a way to dismiss it without moving focus.The tooltip is pure CSS, so this adds one small script. Escape marks the time that has focus or the pointer with
data-dismissed, and a CSS rule hides its tip at once. The mark goes away when focus and the pointer have both left that time, so the next visit opens it again. The HTML renderer inlines the script once per document next to the styles and lists it inscriptsfor CSP hashes, like comark-sources. Vue, React and Svelte call the samestart()on mount and stop it on unmount.addStylesstays exported.The new test in
e2e/time.e2e.tsfocuses a time, presses Escape and checks the tip is hidden while focus stays. It also checks the tip stays closed when the pointer passes over it, and that it opens again after focus or the pointer leaves. It fails onmainand passes here.packages/timeandpackages/uitests pass (the scripts test now counts 16 scripts with a:timein its document), and so do typecheck,vp check, the time Doctor andlint:docs. I only checked the HTML renderer in a browser; Vue, React and Svelte run the same function but I didn't open them.🤖 Generated with Claude Code