File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ export namespace AccordionPanel {
401
401
*/
402
402
createSectionTitle ( data : Title < Widget > ) : HTMLElement {
403
403
const handle = document . createElement ( 'h3' ) ;
404
- handle . setAttribute ( 'role' , 'button ' ) ;
404
+ handle . setAttribute ( 'role' , 'tab ' ) ;
405
405
handle . setAttribute ( 'tabindex' , '0' ) ;
406
406
handle . id = this . createTitleKey ( data ) ;
407
407
handle . className = this . titleClassName ;
Original file line number Diff line number Diff line change @@ -771,7 +771,7 @@ export namespace CommandPalette {
771
771
{
772
772
className,
773
773
dataset,
774
- role : 'checkbox ' ,
774
+ role : 'menuitemcheckbox ' ,
775
775
'aria-checked' : `${ data . item . isToggled } `
776
776
} ,
777
777
this . renderItemIcon ( data ) ,
@@ -782,7 +782,8 @@ export namespace CommandPalette {
782
782
return h . li (
783
783
{
784
784
className,
785
- dataset
785
+ dataset,
786
+ role : 'menuitem'
786
787
} ,
787
788
this . renderItemIcon ( data ) ,
788
789
this . renderItemContent ( data ) ,
@@ -1012,6 +1013,7 @@ namespace Private {
1012
1013
clear . className = 'lm-close-icon' ;
1013
1014
1014
1015
content . className = 'lm-CommandPalette-content' ;
1016
+ content . setAttribute ( 'role' , 'menu' ) ;
1015
1017
input . spellcheck = false ;
1016
1018
wrapper . appendChild ( input ) ;
1017
1019
wrapper . appendChild ( clear ) ;
You can’t perform that action at this time.
0 commit comments