From 0c26ddb68fe5361f925ad450b0ed72757262575d Mon Sep 17 00:00:00 2001 From: Rafael Santana Date: Tue, 19 Dec 2017 22:32:51 -0300 Subject: [PATCH] chore: remove leftover 'md-' prefixes (#9004) --- src/cdk/stepper/stepper.ts | 4 ++-- src/demo-app/a11y/table/table-a11y.html | 4 ++-- src/demo-app/table/table-demo.scss | 2 +- src/lib/expansion/expansion-panel.ts | 2 +- src/lib/icon/icon.spec.ts | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index c346c0ce2c4..4f79605634b 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -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(); } } diff --git a/src/demo-app/a11y/table/table-a11y.html b/src/demo-app/a11y/table/table-a11y.html index ed216654804..742153b8d7e 100644 --- a/src/demo-app/a11y/table/table-a11y.html +++ b/src/demo-app/a11y/table/table-a11y.html @@ -28,8 +28,8 @@ + matSort matSortActive="age" + matSortDirection="asc"> Name {{row.name}} diff --git a/src/demo-app/table/table-demo.scss b/src/demo-app/table/table-demo.scss index 073c741b286..71b93a1a4c6 100644 --- a/src/demo-app/table/table-demo.scss +++ b/src/demo-app/table/table-demo.scss @@ -36,7 +36,7 @@ .user-row { cursor: pointer; - position: relative; // For mdRipple + position: relative; // For matRipple &:hover { background: #f5f5f5; diff --git a/src/lib/expansion/expansion-panel.ts b/src/lib/expansion/expansion-panel.ts index 68a51394c90..4f94c8a80d1 100644 --- a/src/lib/expansion/expansion-panel.ts +++ b/src/lib/expansion/expansion-panel.ts @@ -64,7 +64,7 @@ export type MatExpansionPanelState = 'expanded' | 'collapsed'; * 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. */ diff --git a/src/lib/icon/icon.spec.ts b/src/lib/icon/icon.spec.ts index a3fa25d6770..000c1042b16 100644 --- a/src/lib/icon/icon.spec.ts +++ b/src/lib/icon/icon.spec.ts @@ -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.