fix(ui): prevent focus on share popover text field

This commit is contained in:
David Hill
2026-01-24 22:17:59 +00:00
parent b695216063
commit 30111d2b16
3 changed files with 4 additions and 3 deletions

View File

@@ -195,8 +195,8 @@ export function SessionHeader() {
</div>
}
>
<div class="flex flex-col gap-2 w-72">
<TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" />
<div class="flex flex-col gap-2">
<TextField value={shareUrl() ?? ""} readOnly copyable tabIndex={-1} class="w-full" />
<div class="grid grid-cols-2 gap-2">
<Button
size="large"

View File

@@ -51,7 +51,7 @@
border: 1px solid var(--border-weak-base);
background: var(--input-base);
&:focus-within {
&:focus-within:not(:has([data-readonly])) {
border-color: transparent;
/* border/shadow-xs/select */
box-shadow:

View File

@@ -102,6 +102,7 @@ export function TextField(props: TextFieldProps) {
icon={copied() ? "check" : "link"}
variant="ghost"
onClick={handleCopy}
tabIndex={-1}
data-slot="input-copy-button"
aria-label={copied() ? i18n.t("ui.textField.copied") : i18n.t("ui.textField.copyToClipboard")}
/>