From 5c0be3915e7e561388ea8524dba8fe18fceabc6c Mon Sep 17 00:00:00 2001 From: crisbeto Date: Mon, 14 Aug 2017 23:34:11 +0200 Subject: [PATCH] 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. --- src/lib/chips/chip-list.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/chips/chip-list.ts b/src/lib/chips/chip-list.ts index 35d7ddfb7f70..2487f9cd1c17 100644 --- a/src/lib/chips/chip-list.ts +++ b/src/lib/chips/chip-list.ts @@ -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()',