Skip to content

Commit a0daa02

Browse files
committed
fix(sort): add aria-sort to host when sorted
1 parent c9f87e8 commit a0daa02

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/sort/sort-header-intl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import {Injectable} from '@angular/core';
1010
import {Subject} from 'rxjs/Subject';
11-
import {SortDirection} from './sort-direction';
1211

1312
/**
1413
* To modify the labels and text displayed, create a new instance of MdSortHeaderIntl and

src/lib/sort/sort-header.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,13 @@
99
import {
1010
ChangeDetectionStrategy,
1111
ChangeDetectorRef,
12-
Component, ElementRef,
12+
Component,
1313
Input,
1414
Optional,
1515
ViewEncapsulation
1616
} from '@angular/core';
1717
import {coerceBooleanProperty} from '@angular/cdk/coercion';
18-
import {
19-
trigger,
20-
state,
21-
style,
22-
animate,
23-
transition
24-
} from '@angular/animations';
18+
import {animate, state, style, transition, trigger} from '@angular/animations';
2519
import {CdkColumnDef} from '@angular/cdk/table';
2620
import {Subscription} from 'rxjs/Subscription';
2721
import {merge} from 'rxjs/observable/merge';
@@ -86,7 +80,6 @@ export class MdSortHeader implements MdSortable {
8680

8781
constructor(public _intl: MdSortHeaderIntl,
8882
changeDetectorRef: ChangeDetectorRef,
89-
private _elementRef: ElementRef,
9083
@Optional() public _sort: MdSort,
9184
@Optional() public _cdkColumnDef: CdkColumnDef) {
9285
if (!_sort) {

0 commit comments

Comments
 (0)