Skip to content

Commit 363ea1e

Browse files
committed
refactor(material/sort): remove deprecated APIs for v12
Cleans up the deprecated APIs that were marked for removal in v12. BREAKING CHANGES: * `MatSortHeaderIntl.sortButtonLabel` has been removed. * `MatSortHeaderHarness.getAriaLabel` has been removed.
1 parent 51f5924 commit 363ea1e

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,8 @@ export class MatSortHeaderIntl {
2020
* components if the labels have changed after initialization.
2121
*/
2222
readonly changes: Subject<void> = new Subject<void>();
23-
24-
/**
25-
* ARIA label for the sorting button.
26-
* @deprecated Not used anymore. To be removed.
27-
* @breaking-change 8.0.0
28-
*/
29-
sortButtonLabel = (id: string) => {
30-
return `Change sorting for ${id}`;
31-
}
3223
}
24+
3325
/** @docs-private */
3426
export function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl) {
3527
return parentIntl || new MatSortHeaderIntl();

src/material/sort/testing/sort-header-harness.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ export class MatSortHeaderHarness extends ComponentHarness {
4747
return '';
4848
}
4949

50-
/**
51-
* Gets the aria-label of the sort header.
52-
* @deprecated The sort header no longer has an `aria-label`. This method will be removed.
53-
* @breaking-change 11.0.0
54-
*/
55-
async getAriaLabel(): Promise<string|null> {
56-
return (await this._container()).getAttribute('aria-label');
57-
}
58-
5950
/** Gets whether the sort header is currently being sorted by. */
6051
async isActive(): Promise<boolean> {
6152
return !!(await this.getSortDirection());

tools/public_api_guard/material/sort/testing.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export declare class MatSortHarness extends ComponentHarness {
77

88
export declare class MatSortHeaderHarness extends ComponentHarness {
99
click(): Promise<void>;
10-
getAriaLabel(): Promise<string | null>;
1110
getLabel(): Promise<string>;
1211
getSortDirection(): Promise<SortDirection>;
1312
isActive(): Promise<boolean>;

0 commit comments

Comments
 (0)