iter(g349): listbox 与 radiogroup 容器补可访问名

This commit is contained in:
HIsheR
2026-10-27 02:34:06 +08:00
parent 0a6beb898b
commit a0e4eeb479
6 changed files with 33 additions and 6 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export function mentions(props: MentionsProps): HTMLElement {
'aria-expanded': 'false',
}) as HTMLTextAreaElement;
input.value = value();
const list = h('div', { class: 'ua-mentions-pop', role: 'listbox', id: uid });
const list = h('div', { class: 'ua-mentions-pop', role: 'listbox', 'aria-label': '提及建议', id: uid });
const wrap = h('div', { class: 'ua-mentions' }, input, list);
// 候选:空过滤词给全量,否则按名字 / 关键词做包含匹配