chore: remove leftover 'md-' prefixes (#9004)

This commit is contained in:
Rafael Santana
2017-12-19 22:32:51 -03:00
committed by Joey Perrott
parent 9f4856f97e
commit 0c26ddb68f
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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();
}
}
+2 -2
View File
@@ -28,8 +28,8 @@
<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>
+1 -1
View File
@@ -36,7 +36,7 @@
.user-row {
cursor: pointer;
position: relative; // For mdRipple
position: relative; // For matRipple
&:hover {
background: #f5f5f5;
+1 -1
View File
@@ -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.
*/
+4 -4
View File
@@ -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.