Skip to content

Commit ca46a03

Browse files
committed
Add role to command palette content and to all items of the command palette
1 parent 6e78897 commit ca46a03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/widgets/src/commandpalette.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,8 @@ export namespace CommandPalette {
782782
return h.li(
783783
{
784784
className,
785-
dataset
785+
dataset,
786+
role: 'menuitem'
786787
},
787788
this.renderItemIcon(data),
788789
this.renderItemContent(data),
@@ -1012,6 +1013,7 @@ namespace Private {
10121013
clear.className = 'lm-close-icon';
10131014

10141015
content.className = 'lm-CommandPalette-content';
1016+
content.setAttribute('role', 'menu');
10151017
input.spellcheck = false;
10161018
wrapper.appendChild(input);
10171019
wrapper.appendChild(clear);

0 commit comments

Comments
 (0)