Skip to content

Commit 5c0be39

Browse files
committed
fix(chips): set appropriate aria-orientation
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.
1 parent 85a6fff commit 5c0be39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/chips/chip-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {coerceBooleanProperty} from '@angular/cdk/coercion';
4545
host: {
4646
'[attr.tabindex]': '_tabIndex',
4747
'role': 'listbox',
48+
'aria-orientation': 'horizontal',
4849
'class': 'mat-chip-list',
4950

5051
'(focus)': 'focus()',

0 commit comments

Comments
 (0)