Skip to content

fix(time): hide the comark-time tooltip on Escape - #443

Merged
vite-hub[bot] merged 1 commit into
mainfrom
fix/time-tip-escape
Nov 17, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
fix/time-tip-escape

Conversation

@onmax

@onmax onmax commented Nov 17, 2026

Copy link
Copy Markdown
Owner

A :time tooltip 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 in scripts for CSP hashes, like comark-sources. Vue, React and Svelte call the same start() on mount and stop it on unmount. addStyles stays exported.

The new test in e2e/time.e2e.ts focuses 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 on main and passes here. packages/time and packages/ui tests pass (the scripts test now counts 16 scripts with a :time in its document), and so do typecheck, vp check, the time Doctor and lint: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

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T00:15:25.999999Z
We couldn’t complete this review. Comment @codex review to try again.
86771e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@443

comark-badge

pnpm add https://pkg.pr.new/comark-badge@443

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@443

comark-cards

pnpm add https://pkg.pr.new/comark-cards@443

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@443

comark-cast

pnpm add https://pkg.pr.new/comark-cast@443

comark-charts

pnpm add https://pkg.pr.new/comark-charts@443

comark-chat

pnpm add https://pkg.pr.new/comark-chat@443

comark-chips

pnpm add https://pkg.pr.new/comark-chips@443

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@443

comark-code

pnpm add https://pkg.pr.new/comark-code@443

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@443

comark-colors

pnpm add https://pkg.pr.new/comark-colors@443

comark-comments

pnpm add https://pkg.pr.new/comark-comments@443

comark-critic

pnpm add https://pkg.pr.new/comark-critic@443

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@443

comark-details

pnpm add https://pkg.pr.new/comark-details@443

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@443

comark-diff

pnpm add https://pkg.pr.new/comark-diff@443

comark-embed

pnpm add https://pkg.pr.new/comark-embed@443

comark-fields

pnpm add https://pkg.pr.new/comark-fields@443

comark-figure

pnpm add https://pkg.pr.new/comark-figure@443

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@443

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@443

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@443

comark-github

pnpm add https://pkg.pr.new/comark-github@443

comark-icon

pnpm add https://pkg.pr.new/comark-icon@443

comark-include

pnpm add https://pkg.pr.new/comark-include@443

comark-keys

pnpm add https://pkg.pr.new/comark-keys@443

comark-links

pnpm add https://pkg.pr.new/comark-links@443

comark-linter

pnpm add https://pkg.pr.new/comark-linter@443

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@443

comark-mark

pnpm add https://pkg.pr.new/comark-mark@443

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@443

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@443

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@443

comark-media

pnpm add https://pkg.pr.new/comark-media@443

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@443

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@443

comark-outline

pnpm add https://pkg.pr.new/comark-outline@443

comark-properties

pnpm add https://pkg.pr.new/comark-properties@443

comark-qr

pnpm add https://pkg.pr.new/comark-qr@443

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@443

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@443

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@443

comark-sources

pnpm add https://pkg.pr.new/comark-sources@443

comark-steps

pnpm add https://pkg.pr.new/comark-steps@443

comark-table

pnpm add https://pkg.pr.new/comark-table@443

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@443

comark-tests

pnpm add https://pkg.pr.new/comark-tests@443

comark-time

pnpm add https://pkg.pr.new/comark-time@443

comark-ui

pnpm add https://pkg.pr.new/comark-ui@443

comark-xref

pnpm add https://pkg.pr.new/comark-xref@443

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@443

commit: 86771e4

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/time/src/client.ts Resolved
@vite-hub

vite-hub Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-17T00:35:26.768Z 2m 38s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

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.

@vite-hub
vite-hub Bot merged commit 5b082eb into main Nov 17, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the fix/time-tip-escape branch November 17, 2026 00:38
This was referenced Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant