Skip to content

chore: remove leftover 'md-' prefixes #9004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cdk/stepper/stepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export class CdkStep implements OnChanges {
}

ngOnChanges() {
// Since basically all inputs of the MdStep get proxied through the view down to the
// underlying MdStepHeader, we have to make sure that change detection runs correctly.
// Since basically all inputs of the MatStep get proxied through the view down to the
// underlying MatStepHeader, we have to make sure that change detection runs correctly.
this._stepper._stateChanged();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/demo-app/a11y/table/table-a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ <h2>Sortable Table</h2>
<mat-table [dataSource]="sortDataSource"
aria-label="Users favorite colors and age"
aria-readonly="true"
mdSort mdSortActive="age"
mdSortDirection="asc">
matSort matSortActive="age"
matSortDirection="asc">
<ng-container cdkColumnDef="name">
<mat-header-cell *cdkHeaderCellDef>Name</mat-header-cell>
<mat-cell *cdkCellDef="let row">{{row.name}}</mat-cell>
Expand Down
2 changes: 1 addition & 1 deletion src/demo-app/table/table-demo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

.user-row {
cursor: pointer;
position: relative; // For mdRipple
position: relative; // For matRipple

&:hover {
background: #f5f5f5;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/expansion/expansion-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export type MatExpansionPanelState = 'expanded' | 'collapsed';
* <mat-expansion-panel> component.
*
* This component can be used as a single element to show expandable content, or as one of
* multiple children of an element with the MdAccordion directive attached.
* multiple children of an element with the MatAccordion directive attached.
*
* Please refer to README.md for examples on how to use it.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/lib/icon/icon.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,26 @@ describe('MatIcon', () => {
let fixture = TestBed.createComponent(IconFromSvgName);
let svgElement: SVGElement;
const testComponent = fixture.componentInstance;
const mdIconElement = fixture.debugElement.nativeElement.querySelector('mat-icon');
const iconElement = fixture.debugElement.nativeElement.querySelector('mat-icon');

testComponent.iconName = 'fido';
fixture.detectChanges();
http.expectOne('dog.svg').flush(FAKE_SVGS.dog);
svgElement = verifyAndGetSingleSvgChild(mdIconElement);
svgElement = verifyAndGetSingleSvgChild(iconElement);
verifyPathChildElement(svgElement, 'woof');

// Change the icon, and the SVG element should be replaced.
testComponent.iconName = 'fluffy';
fixture.detectChanges();
http.expectOne('cat.svg').flush(FAKE_SVGS.cat);
svgElement = verifyAndGetSingleSvgChild(mdIconElement);
svgElement = verifyAndGetSingleSvgChild(iconElement);
verifyPathChildElement(svgElement, 'meow');

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

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