Skip to content

fix(chips): keep the focus ring inside the chip so it doesn't cover the next word - #493

Merged
vite-hub[bot] merged 2 commits into
mainfrom
fix/chips-focus-ring
Nov 27, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
fix/chips-focus-ring

Conversation

@onmax

@onmax onmax commented Nov 27, 2026

Copy link
Copy Markdown
Owner

A focused chip drew its ring 2px outside the pill (`outline-offset:2px`), so in running text and table cells the ring covered the space and touched the next word, as on a Drop plan where `#19` ran into "inflected".

  • A favicon chip's ring now covers its own hairline (`outline-offset:-1px`), adding 1px outside instead of 4px.
  • An avatar chip has no padding to hold a ring, so on focus it underlines its name in `--comark-ring`, 2px thick, the way it underlines on hover.

Checked by tabbing through a rendered table in Chromium: before, the ring overlaps "inflected" and "and ask"; after, both chips keep clear of the next word. `comark-chips` tests pass (46).

🤖 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-27T11:21:53.901643Z
We couldn’t complete this review. Comment @codex review to try again.
e515f68 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.

@vite-hub

vite-hub Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-27T11:41:35.478Z 2m 23s
View session Completed 2026-11-27T11:30:02.381Z 3m 0s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

PR #493 is ready to merge. The earlier P1 finding is fixed and its thread is resolved: image-only avatar chips show an inset keyboard focus ring without covering adjacent text. All 46 chip tests passed locally, lint passed with warnings, and hosted checks, including Playwright, passed. No further changes were needed.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

Session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

View session

Pushed 4065a35 and resolved the P1 review finding. Image-only avatar chips now show an inset keyboard focus ring that stays clear of adjacent text. All 46 chip tests passed, and lint exited successfully with warnings. A DNS failure prevented the local Chromium download, so the new Playwright regression awaits hosted CI.

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

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

comark-badge

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

comark-bundle

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

comark-cards

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

comark-carousel

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

comark-cast

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

comark-charts

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

comark-chat

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

comark-chips

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

comark-cjk

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

comark-code

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

comark-code-notes

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

comark-colors

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

comark-comments

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

comark-critic

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

comark-deflist

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

comark-details

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

comark-diagrams

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

comark-diff

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

comark-embed

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

comark-fields

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

comark-figure

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

comark-file-tree

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

comark-footnotes

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

comark-git-graph

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

comark-github

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

comark-icon

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

comark-include

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

comark-keys

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

comark-links

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

comark-linter

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

comark-magic-move

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

comark-mark

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

markdown-it-to-comark

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

marked-to-comark

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

comark-mathml

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

comark-media

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

comark-metrics

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

migrate-to-comark

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

comark-motion

pnpm add https://pkg.pr.new/comark-motion@493

comark-outline

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

comark-properties

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

comark-qr

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

comark-quiz

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

comark-reading-time

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

remark-to-comark

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

comark-sources

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

comark-steps

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

comark-table

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

comark-tabs

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

comark-tests

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

comark-time

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

comark-ui

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

comark-xref

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

comark-zoom

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

commit: 4065a35

@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.

Important

Image-only avatar chips lose their visible keyboard focus indicator.

Approach: Moving the favicon outline inward addresses the overlap without changing layout, but the avatar replacement depends on having text to underline.

Reviewed changes — verified the shared styles by tabbing through rendered chips in Chromium; all 46 chip package tests passed.

  • Favicon chips: The 2px outline moves from a 2px offset to -1px, keeping it clear of the following word in the tested table cell.
  • Avatar chips: A 2px underline replaces the outline, which leaves an image-only link with no visible focus state.

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

Comment thread packages/chips/src/styles.ts Resolved

@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 new issues found. No P0 or P1 findings remain.

Approach: Drawing the focus ring inside the avatar makes keyboard focus visible without relying on text or touching the next word.

Reviewed changes — re-reviewed 4065a35 since the prior Pullfrog review.

  • Restored image-only focus: Added a 2px inset outline to the avatar image. In Chromium, tabbing to the reported chip changed pixels only inside the avatar.
  • Added regression coverage: Added a Playwright test that tabs to the image-only chip and checks its outline. All five Chromium chips tests and 46 package tests passed.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub
vite-hub Bot merged commit 5d5382c into main Nov 27, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the fix/chips-focus-ring branch November 27, 2026 11:44
@github-actions github-actions Bot mentioned this pull request Nov 27, 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