From eb298a439fa6e2ad1bf0b5c64b6ed98113309974 Mon Sep 17 00:00:00 2001
From: Yif <877193178@qq.com>
Date: Mon, 10 Aug 2026 22:54:19 +0800
Subject: [PATCH] test(web): count the preset icon and keep the access chevron
aria-hidden
---
.../src/client/skeleton/PermissionSelect.module.css | 3 +++
.../src/client/skeleton/PermissionSelect.tsx | 8 ++++----
packages/client/ui-primitives/src/icons/index.tsx | 2 +-
packages/client/ui-primitives/tests/icons.spec.tsx | 4 ++--
4 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.module.css b/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.module.css
index 60aceaa120..22f64d6e61 100644
--- a/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.module.css
+++ b/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.module.css
@@ -51,6 +51,9 @@
}
.chevron {
+ /* inline-flex, not inline: an inline seat reserves baseline descent under
+ the svg and floats the glyph off-center in the 28px trigger. */
+ display: inline-flex;
flex: 0 0 auto;
color: var(--dsw-alias-label-caption);
transition: transform 120ms ease;
diff --git a/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.tsx b/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.tsx
index 47bd4e274d..73f4080c1c 100644
--- a/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.tsx
+++ b/packages/client/ui-conversation/src/client/skeleton/PermissionSelect.tsx
@@ -147,10 +147,10 @@ export function PermissionSelect({ value, locked, command, t }: PermissionSelect
{permissionGlyph(currentValue)}
)}
{current === undefined ? displayName(currentValue) : optionLabel(current)}
- {/* Same glyph + open rotation as the sibling ModelSelect trigger;
- class on the svg itself — an inline wrapper span leaves
- baseline descent under the icon and floats it off-center. */}
-
+ {/* Same glyph + open rotation as the sibling ModelSelect trigger. */}
+
+
+
}
/>
diff --git a/packages/client/ui-primitives/src/icons/index.tsx b/packages/client/ui-primitives/src/icons/index.tsx
index 354adc4454..972e0ec14d 100644
--- a/packages/client/ui-primitives/src/icons/index.tsx
+++ b/packages/client/ui-primitives/src/icons/index.tsx
@@ -349,7 +349,7 @@ export const IconThinkOutline16 = ({ size = 16, className }: IconProps) => (
)
-/** ic_ds_agent_preset_outline_16. The three node interiors knock out to transparency via mask so the glyph sits on any background. */
+/** ic_ds_agent_preset_outline_16 (figma extract): node interiors knock out to transparency via mask, so the glyph sits on any fill. */
export const IconAgentPresetOutline16 = ({ size = 16, className }: IconProps) => (