fix(ui): prevent focus on share popover text field
This commit is contained in:
@@ -195,8 +195,8 @@ export function SessionHeader() {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div class="flex flex-col gap-2 w-72">
|
<div class="flex flex-col gap-2">
|
||||||
<TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" />
|
<TextField value={shareUrl() ?? ""} readOnly copyable tabIndex={-1} class="w-full" />
|
||||||
<div class="grid grid-cols-2 gap-2">
|
<div class="grid grid-cols-2 gap-2">
|
||||||
<Button
|
<Button
|
||||||
size="large"
|
size="large"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
border: 1px solid var(--border-weak-base);
|
border: 1px solid var(--border-weak-base);
|
||||||
background: var(--input-base);
|
background: var(--input-base);
|
||||||
|
|
||||||
&:focus-within {
|
&:focus-within:not(:has([data-readonly])) {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
/* border/shadow-xs/select */
|
/* border/shadow-xs/select */
|
||||||
box-shadow:
|
box-shadow:
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ export function TextField(props: TextFieldProps) {
|
|||||||
icon={copied() ? "check" : "link"}
|
icon={copied() ? "check" : "link"}
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={handleCopy}
|
onClick={handleCopy}
|
||||||
|
tabIndex={-1}
|
||||||
data-slot="input-copy-button"
|
data-slot="input-copy-button"
|
||||||
aria-label={copied() ? i18n.t("ui.textField.copied") : i18n.t("ui.textField.copyToClipboard")}
|
aria-label={copied() ? i18n.t("ui.textField.copied") : i18n.t("ui.textField.copyToClipboard")}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user