iter(g337): 可访问名纳入 verify 门禁

This commit is contained in:
HIsheR
2026-10-27 02:13:10 +08:00
parent c3791c5a51
commit 1d25c8a4f5
4 changed files with 39 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ export function commandPalette(props: CommandPaletteProps): CommandPaletteHandle
class: 'ua-cmdk-input',
type: 'text',
placeholder: props.placeholder ?? '搜索命令…',
'aria-label': props.placeholder ?? '搜索命令', // 占位文案只是提示,不是可访问名:读屏要靠这一条才知道搜的是什么
'aria-controls': `${uid}-list`,
role: 'combobox',
'aria-expanded': 'true',