Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
fix(open-knowledge): clean up clone card outline and focus in share dialog (#2403)
Andrew Mikofalvy4e8e8ac1fc05
diff --git a/.changeset/share-clone-card-focus.md b/.changeset/share-clone-card-focus.mdnew file mode 100644index 000000000..4e60d8f82--- /dev/null+++ b/.changeset/share-clone-card-focus.md@@ -0,0 +1,15 @@+---+"@inkeep/open-knowledge": patch+---++Fix the "Open shared folder" dialog showing a heavy, misplaced outline around the+"Clone to a new folder" card when you open a share link. The dialog auto-focuses+that card, and its always-on 2px primary-colored border (with no fill) stacked+with a hard, full-opacity focus ring read as a stray blue outline whose focus+state overflowed the card.++The two choice cards now use the app's standard card treatment: the recommended+clone card gets a subtle 1px primary border with a light primary tint (an+intentional highlight instead of a bare outline), and both cards adopt the+app-wide focus-visible ring, which suppresses the native outline and renders a+soft, contained focus halo consistent with every other control.diff --git a/packages/app/src/components/ShareReceiveDialog.tsx b/packages/app/src/components/ShareReceiveDialog.tsxindex d0be53e6f..e1fcf1ca2 100644--- a/packages/app/src/components/ShareReceiveDialog.tsx+++ b/packages/app/src/components/ShareReceiveDialog.tsx@@ -706,7 +706,7 @@ function ShareReceiveDialogInner({<buttontype="button"data-testid="share-receive-clone"- className="flex flex-col items-start gap-2 rounded-lg border-2 border-primary/40 bg-card p-4 text-left transition hover:border-primary hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/40 disabled:hover:bg-card"+ className="flex flex-col items-start gap-2 rounded-lg border border-primary/50 bg-primary/5 p-4 text-left transition hover:border-primary hover:bg-primary/10 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/50 disabled:hover:bg-primary/5"onClick={() => {void handleCloneCtaClick();}}@@ -721,7 +721,7 @@ function ShareReceiveDialogInner({<buttontype="button"data-testid="share-receive-local"- className="flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"+ className="flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50"onClick={() => {void handleLocalCtaClick();}}