Skip to content

Commit f35a666

Browse files
committed
Fix lint
1 parent 8beb133 commit f35a666

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/lib/button/button.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ describe('MatButton', () => {
5050
fixture.detectChanges();
5151

5252
// Buttons that have no background color and theme palette are considered as plain buttons.
53-
expect(buttonDebugEl.nativeElement.classList).toContain('mat-plain-button');
54-
expect(anchorDebugEl.nativeElement.classList).toContain('mat-plain-button');
55-
expect(fabDebugEl.nativeElement.classList).not.toContain('mat-plain-button');
53+
expect(buttonDebugEl.nativeElement.classList).toContain('mat-button-plain');
54+
expect(anchorDebugEl.nativeElement.classList).toContain('mat-button-plain');
55+
expect(fabDebugEl.nativeElement.classList).not.toContain('mat-button-plain');
5656

5757
fixture.componentInstance.buttonColor = 'primary';
5858
fixture.detectChanges();
5959

6060
// Buttons that have no background color, but use an explicit theme palette, are not
6161
// considered as plain buttons.
62-
expect(buttonDebugEl.nativeElement.classList).not.toContain('mat-plain-button');
63-
expect(anchorDebugEl.nativeElement.classList).not.toContain('mat-plain-button');
64-
expect(fabDebugEl.nativeElement.classList).not.toContain('mat-plain-button');
62+
expect(buttonDebugEl.nativeElement.classList).not.toContain('mat-button-plain');
63+
expect(anchorDebugEl.nativeElement.classList).not.toContain('mat-button-plain');
64+
expect(fabDebugEl.nativeElement.classList).not.toContain('mat-button-plain');
6565
});
6666

6767

src/lib/button/button.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export class MatButton extends _MatButtonMixinBase
9393
@ViewChild(MatRipple) ripple: MatRipple;
9494

9595
constructor(elementRef: ElementRef,
96+
/**
97+
* @deprecated Platform checks for SSR are no longer needed
98+
* @deletion-target 7.0.0
99+
*/
100+
// tslint:disable-next-line:no-unused-variable
96101
private _platform: Platform,
97102
private _focusMonitor: FocusMonitor) {
98103
super(elementRef);

0 commit comments

Comments
 (0)