Skip to content

Commit

Permalink
fix(list): set aria attributes to md-divider (#4925)
Browse files Browse the repository at this point in the history
Sets the appropriate role and `aria-orientation` on the `md-divider` element.
  • Loading branch information
crisbeto authored and andrewseguin committed Jun 5, 2017
1 parent 1055720 commit a240c9c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ 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 {}

@Component({
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
Expand Down

0 comments on commit a240c9c

Please sign in to comment.