From 64384a7e75ddf1f38eadad509bde6cf92c7085f7 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Fri, 2 Jun 2017 08:02:38 +0200 Subject: [PATCH] fix(list): set aria attributes to md-divider Sets the appropriate role and `aria-orientation` on the `md-divider` element. --- src/lib/list/list.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/list/list.ts b/src/lib/list/list.ts index a8e7501be1d5..cea35de9e0b4 100644 --- a/src/lib/list/list.ts +++ b/src/lib/list/list.ts @@ -14,7 +14,11 @@ import { import {coerceBooleanProperty, MdLine, MdLineSetter} from '../core'; @Directive({ - selector: 'md-divider, mat-divider' + selector: 'md-divider, mat-divider', + host: { + 'role': 'separator', + 'aria-orientation': 'horizontal' + } }) export class MdListDivider {} @@ -22,7 +26,8 @@ export class MdListDivider {} moduleId: module.id, selector: 'md-list, mat-list, md-nav-list, mat-nav-list', host: { - 'role': 'list'}, + 'role': 'list' + }, template: '', styleUrls: ['list.css'], encapsulation: ViewEncapsulation.None