Skip to content

Commit

Permalink
fix(chips): set appropriate aria-orientation
Browse files Browse the repository at this point in the history
Based on the [accessibility guidelines](https://www.w3.org/TR/wai-aria-practices-1.1/#Listbox), the `listbox` role has a default `aria-orientation` of `vertical`, however the chips in a chip list are horizontal.
  • Loading branch information
crisbeto committed Aug 14, 2017
1 parent 85a6fff commit 5c0be39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/chips/chip-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion';
host: {
'[attr.tabindex]': '_tabIndex',
'role': 'listbox',
'aria-orientation': 'horizontal',
'class': 'mat-chip-list',

'(focus)': 'focus()',
Expand Down

0 comments on commit 5c0be39

Please sign in to comment.