File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -50,18 +50,18 @@ describe('MatButton', () => {
50
50
fixture . detectChanges ( ) ;
51
51
52
52
// 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 ' ) ;
56
56
57
57
fixture . componentInstance . buttonColor = 'primary' ;
58
58
fixture . detectChanges ( ) ;
59
59
60
60
// Buttons that have no background color, but use an explicit theme palette, are not
61
61
// 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 ' ) ;
65
65
} ) ;
66
66
67
67
Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ export class MatButton extends _MatButtonMixinBase
93
93
@ViewChild ( MatRipple ) ripple : MatRipple ;
94
94
95
95
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
96
101
private _platform : Platform ,
97
102
private _focusMonitor : FocusMonitor ) {
98
103
super ( elementRef ) ;
You can’t perform that action at this time.
0 commit comments