Skip to content

Commit c9f87e8

Browse files
committed
revert _intl change
1 parent b79d8a7 commit c9f87e8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/sort/sort-header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="mat-sort-header-container"
22
[class.mat-sort-header-position-before]="arrowPosition == 'before'">
33
<button class="mat-sort-header-button" type="button"
4-
[attr.aria-label]="intl.sortButtonLabel(id)">
4+
[attr.aria-label]="_intl.sortButtonLabel(id)">
55
<ng-content></ng-content>
66
</button>
77

@@ -12,4 +12,4 @@
1212
<div class="mat-sort-header-pointer-left"></div>
1313
<div class="mat-sort-header-pointer-right"></div>
1414
</div>
15-
</div>
15+
</div>

src/lib/sort/sort-header.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class MdSortHeader implements MdSortable {
8484
get _id() { return this.id; }
8585
set _id(v: string) { this.id = v; }
8686

87-
constructor(public intl: MdSortHeaderIntl,
87+
constructor(public _intl: MdSortHeaderIntl,
8888
changeDetectorRef: ChangeDetectorRef,
8989
private _elementRef: ElementRef,
9090
@Optional() public _sort: MdSort,
@@ -93,7 +93,7 @@ export class MdSortHeader implements MdSortable {
9393
throw getMdSortHeaderNotContainedWithinMdSortError();
9494
}
9595

96-
this._rerenderSubscription = merge(_sort.mdSortChange, intl.changes).subscribe(() => {
96+
this._rerenderSubscription = merge(_sort.mdSortChange, _intl.changes).subscribe(() => {
9797
changeDetectorRef.markForCheck();
9898
});
9999
}
@@ -117,7 +117,7 @@ export class MdSortHeader implements MdSortable {
117117
}
118118

119119
/**
120-
* Returns the aria-sort attribute that should be applied to this sort header. If this header
120+
* Gets the aria-sort attribute that should be applied to this sort header. If this header
121121
* is not sorted, returns null so that the attribute is removed from the host element. Aria spec
122122
* says that the aria-sort property should only be present on one header at a time, so removing
123123
* ensures this is true.

0 commit comments

Comments
 (0)