fix(list): set aria attributes to md-divider (#4925)

Sets the appropriate role and `aria-orientation` on the `md-divider` element.
This commit is contained in:
Kristiyan Kostadinov
2017-06-05 23:46:12 +02:00
committed by Andrew Seguin
parent 1055720fe1
commit a240c9ccef
+7 -2
View File
@@ -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: '<ng-content></ng-content>',
styleUrls: ['list.css'],
encapsulation: ViewEncapsulation.None