From 1919e6f368ce44d4eead5d11a69bef1b63161c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Fri, 3 Jul 2026 17:23:41 +0800 Subject: [PATCH] fix: suppress Sender borderless focus outline --- packages/x/components/sender/style/index.ts | 5 +++++ packages/x/components/sender/style/slot-textarea.ts | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/packages/x/components/sender/style/index.ts b/packages/x/components/sender/style/index.ts index 9ad4d7546..1f3bdd732 100644 --- a/packages/x/components/sender/style/index.ts +++ b/packages/x/components/sender/style/index.ts @@ -129,6 +129,11 @@ const genSenderStyle: GenerateStyle = (token) => { alignSelf: 'center', caretColor: token.colorPrimary, fontSize: token.fontSize, + [`&${antCls}-input-borderless`]: { + '&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)': { + outline: 'none', + }, + }, }, // ============================ Actions ============================ [`${componentCls}-actions-list`]: { diff --git a/packages/x/components/sender/style/slot-textarea.ts b/packages/x/components/sender/style/slot-textarea.ts index 08e4cf155..6b934c4f7 100644 --- a/packages/x/components/sender/style/slot-textarea.ts +++ b/packages/x/components/sender/style/slot-textarea.ts @@ -6,6 +6,7 @@ const genSlotTextAreaStyle: GenerateStyle = (token) => { const { componentCls, antCls, calc } = token; const slotCls = `${componentCls}-slot`; const antInputCls = `${antCls}-input`; + const antInputBorderlessCls = `${antInputCls}-borderless`; const antDropdownCls = `${antCls}-dropdown-trigger`; const slotInputCls = `${componentCls}-slot-input`; const slotSelectCls = `${componentCls}-slot-select`; @@ -47,6 +48,11 @@ const genSlotTextAreaStyle: GenerateStyle = (token) => { fontSize: 'inherit', lineHeight: 'inherit', position: 'relative', + [`&${antInputBorderlessCls}`]: { + '&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)': { + outline: 'none', + }, + }, '&::placeholder': { color: token.colorTextSlotPlaceholder, fontSize: 'inherit',