Skip to content

Commit 5a1dc2a

Browse files
Samiya CaurDevtools-frontend LUCI CQ
Samiya Caur
authored and
Devtools-frontend LUCI CQ
committed
[PatchAgent] Structure the folder list as a listbox
Bug: 406073540 Change-Id: I57ed1a7ebbf6976a6843bd9cb2e23abef48cb667 Fixed: 406073540 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6437775 Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org> Auto-Submit: Samiya Caur <samiyac@chromium.org> Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
1 parent 1b4aa4c commit 5a1dc2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front_end/panels/ai_assistance/SelectWorkspaceDialog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ export class SelectWorkspaceDialog extends UI.Widget.VBox {
107107
<div>${lockedString(UIStringsNotTranslate.sourceCodeSent)}</div>
108108
</div>
109109
${hasFolders ? html`
110-
<ul>
110+
<ul role="listbox" aria-label=${lockedString(UIStringsNotTranslate.selectFolder)} tabindex="0">
111111
${input.folders.map((folder, index) => {
112112
return html`
113113
<li
114114
@click=${() => input.onProjectSelected(index)}
115115
class=${index === input.selectedIndex ? 'selected' : ''}
116+
aria-selected=${index === input.selectedIndex ? 'true' : 'false'}
116117
title=${folder.path}
118+
role="option"
117119
>
118120
<devtools-icon class="folder-icon" .name=${'folder'}></devtools-icon>
119121
<span class="ellipsis">${folder.name}</span>

0 commit comments

Comments
 (0)