Skip to content

fix: show a keyboard focus ring on annotation comment cards - #838

Draft
kduncanhsu wants to merge 2 commits into
box:masterfrom
kduncanhsu:comment-card-focus-ring
Draft

kduncanhsu wants to merge 2 commits into
box:masterfrom
kduncanhsu:comment-card-focus-ring

Conversation

@kduncanhsu

Copy link
Copy Markdown
Contributor

Summary

  • Tabbing to an annotation on the document draws an inset focus ring on its comment card, using the Blueprint token --bp-outline-focus-on-light.
  • On a new annotation composer, Tab cycles through three stops: the text editor, Post, and the card, which shows the same ring.
  • Clicking an annotation still opens the card without the ring. Existing threads do not get the extra composer stop.

Test plan

  • Tab to an existing region, highlight, and drawing annotation and confirm the comment card shows an inset blue ring, 2px in from the card edge.
  • Click an annotation and confirm the ring does not appear.
  • Draw a region, type in the inline editor, and Tab through the editor, Post, and the card ring.
  • Open an existing thread and confirm there is no extra composer tab stop.
  • yarn jest src/components/Popups/__tests__/PopupV2-test.tsx --watchman=false

Made with Cursor

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Duncan Hsu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Duncan Hsu added 2 commits November 19, 2026 15:08
Mirror keyboard focus from a document annotation onto the portaled
comment card so the card shows an inset ring.
Tab in the inline composer only moved between the text editor and
Post. Add a following stop that shows the card focus ring.
@kduncanhsu
kduncanhsu force-pushed the comment-card-focus-ring branch from cfdca28 to dfb5d30 Compare November 19, 2026 23:09

This branch has not been deployed

No deployments
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.

2 participants