@@ -180,10 +180,10 @@ class Trait<T> implements ISpliceable<boolean>, IDisposable {
180180 }
181181}
182182
183- class FocusTrait < T > extends Trait < T > {
183+ class SelectionTrait < T > extends Trait < T > {
184184
185185 constructor ( ) {
186- super ( 'focused ' ) ;
186+ super ( 'selected ' ) ;
187187 }
188188
189189 renderIndex ( index : number , container : HTMLElement ) : void {
@@ -1198,8 +1198,8 @@ export class List<T> implements ISpliceable<T>, IDisposable {
11981198 renderers : IListRenderer < any /* TODO@joao */ , any > [ ] ,
11991199 private _options : IListOptions < T > = DefaultOptions
12001200 ) {
1201- this . focus = new FocusTrait ( ) ;
1202- this . selection = new Trait ( 'selected' ) ;
1201+ this . focus = new Trait ( 'focused' ) ;
1202+ this . selection = new SelectionTrait ( ) ;
12031203
12041204 mixin ( _options , defaultStyles , false ) ;
12051205
@@ -1272,6 +1272,9 @@ export class List<T> implements ISpliceable<T>, IDisposable {
12721272 if ( _options . ariaLabel ) {
12731273 this . view . domNode . setAttribute ( 'aria-label' , localize ( 'aria list' , "{0}. Use the navigation keys to navigate." , _options . ariaLabel ) ) ;
12741274 }
1275+ if ( _options . multipleSelectionSupport ) {
1276+ this . view . domNode . setAttribute ( 'aria-multiselectable' , 'true' ) ;
1277+ }
12751278 }
12761279
12771280 protected createMouseController ( options : IListOptions < T > ) : MouseController < T > {
0 commit comments