mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
1055720fe1
commit
a240c9ccef
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user