File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
adaptivecards-controls/src
adaptivecards-designer/src
adaptivecards/src/controls Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class DropDownItem {
3333 this . _element . className = "ms-ctrl ms-ctrl-dropdown-item" ;
3434 this . _element . innerText = this . value ;
3535 this . _element . setAttribute ( "role" , "menuitem" ) ;
36- this . _element . setAttribute ( "aria-selected " , "false" ) ;
36+ this . _element . setAttribute ( "aria-current " , "false" ) ;
3737 this . _element . onmouseup = ( e ) => { this . click ( ) ; } ;
3838 this . _element . onkeydown = ( e ) => {
3939 if ( e . key === Constants . keys . enter ) {
@@ -164,12 +164,12 @@ export class DropDownPopupControl extends PopupControl {
164164 if ( index >= 0 && index < this . _renderedItems . length ) {
165165 // deselect previous item (if one was selected)
166166 if ( this . _selectedIndex >= 0 && this . _selectedIndex < this . _renderedItems . length ) {
167- this . _renderedItems [ this . _selectedIndex ] . setAttribute ( "aria-selected " , "false" ) ;
167+ this . _renderedItems [ this . _selectedIndex ] . setAttribute ( "aria-current " , "false" ) ;
168168 }
169169
170170 // select new item
171171 this . _renderedItems [ index ] . focus ( ) ;
172- this . _renderedItems [ index ] . setAttribute ( "aria-selected " , "true" ) ;
172+ this . _renderedItems [ index ] . setAttribute ( "aria-current " , "true" ) ;
173173
174174 this . _selectedIndex = index ;
175175 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export abstract class BaseTreeItem extends DraggableElement {
3333 this . _treeItemElement . classList . remove ( "selected" ) ;
3434 }
3535
36- this . _rootElement . setAttribute ( "aria-selected " , this . _isSelected . toString ( ) ) ;
36+ this . _rootElement . setAttribute ( "aria-current " , this . _isSelected . toString ( ) ) ;
3737
3838 this . selectedChanged ( scrollIntoView ) ;
3939 }
@@ -91,7 +91,7 @@ export abstract class BaseTreeItem extends DraggableElement {
9191 this . _rootElement . style . listStyleType = "none" ;
9292 this . _rootElement . setAttribute ( "aria-labelledby" , labelId ) ;
9393 this . _rootElement . setAttribute ( "aria-level" , this . _level . toString ( ) ) ;
94- this . _rootElement . setAttribute ( "aria-selected " , this . _isSelected . toString ( ) ) ;
94+ this . _rootElement . setAttribute ( "aria-current " , this . _isSelected . toString ( ) ) ;
9595 this . _rootElement . tabIndex = 0 ;
9696
9797 if ( hasChildren ) {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export class MenuItem {
5757 this . _element . setAttribute ( "aria-disabled" , "true" ) ;
5858 }
5959
60- this . _element . setAttribute ( "aria-selected " , "false" ) ;
60+ this . _element . setAttribute ( "aria-current " , "false" ) ;
6161 this . _element . onmouseup = ( _e ) => {
6262 this . click ( ) ;
6363 } ;
You can’t perform that action at this time.
0 commit comments