Skip to content

Commit 0c26ddb

Browse files
rafaelss95josephperrott
authored andcommitted
chore: remove leftover 'md-' prefixes (#9004)
1 parent 9f4856f commit 0c26ddb

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/cdk/stepper/stepper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ export class CdkStep implements OnChanges {
121121
}
122122

123123
ngOnChanges() {
124-
// Since basically all inputs of the MdStep get proxied through the view down to the
125-
// underlying MdStepHeader, we have to make sure that change detection runs correctly.
124+
// Since basically all inputs of the MatStep get proxied through the view down to the
125+
// underlying MatStepHeader, we have to make sure that change detection runs correctly.
126126
this._stepper._stateChanged();
127127
}
128128
}

src/demo-app/a11y/table/table-a11y.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ <h2>Sortable Table</h2>
2828
<mat-table [dataSource]="sortDataSource"
2929
aria-label="Users favorite colors and age"
3030
aria-readonly="true"
31-
mdSort mdSortActive="age"
32-
mdSortDirection="asc">
31+
matSort matSortActive="age"
32+
matSortDirection="asc">
3333
<ng-container cdkColumnDef="name">
3434
<mat-header-cell *cdkHeaderCellDef>Name</mat-header-cell>
3535
<mat-cell *cdkCellDef="let row">{{row.name}}</mat-cell>

src/demo-app/table/table-demo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
.user-row {
3838
cursor: pointer;
39-
position: relative; // For mdRipple
39+
position: relative; // For matRipple
4040

4141
&:hover {
4242
background: #f5f5f5;

src/lib/expansion/expansion-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export type MatExpansionPanelState = 'expanded' | 'collapsed';
6464
* <mat-expansion-panel> component.
6565
*
6666
* This component can be used as a single element to show expandable content, or as one of
67-
* multiple children of an element with the MdAccordion directive attached.
67+
* multiple children of an element with the MatAccordion directive attached.
6868
*
6969
* Please refer to README.md for examples on how to use it.
7070
*/

src/lib/icon/icon.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,26 +124,26 @@ describe('MatIcon', () => {
124124
let fixture = TestBed.createComponent(IconFromSvgName);
125125
let svgElement: SVGElement;
126126
const testComponent = fixture.componentInstance;
127-
const mdIconElement = fixture.debugElement.nativeElement.querySelector('mat-icon');
127+
const iconElement = fixture.debugElement.nativeElement.querySelector('mat-icon');
128128

129129
testComponent.iconName = 'fido';
130130
fixture.detectChanges();
131131
http.expectOne('dog.svg').flush(FAKE_SVGS.dog);
132-
svgElement = verifyAndGetSingleSvgChild(mdIconElement);
132+
svgElement = verifyAndGetSingleSvgChild(iconElement);
133133
verifyPathChildElement(svgElement, 'woof');
134134

135135
// Change the icon, and the SVG element should be replaced.
136136
testComponent.iconName = 'fluffy';
137137
fixture.detectChanges();
138138
http.expectOne('cat.svg').flush(FAKE_SVGS.cat);
139-
svgElement = verifyAndGetSingleSvgChild(mdIconElement);
139+
svgElement = verifyAndGetSingleSvgChild(iconElement);
140140
verifyPathChildElement(svgElement, 'meow');
141141

142142
// Using an icon from a previously loaded URL should not cause another HTTP request.
143143
testComponent.iconName = 'fido';
144144
fixture.detectChanges();
145145
http.expectNone('dog.svg');
146-
svgElement = verifyAndGetSingleSvgChild(mdIconElement);
146+
svgElement = verifyAndGetSingleSvgChild(iconElement);
147147
verifyPathChildElement(svgElement, 'woof');
148148

149149
// Assert that a registered icon can be looked-up by url.

0 commit comments

Comments
 (0)