File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
< span class ="mat-button-wrapper "> < ng-content > </ ng-content > </ span >
2
2
< div matRipple class ="mat-button-ripple "
3
- [class.mat-button-ripple-round] ="_isRoundButton || _isIconButton "
3
+ [class.mat-button-ripple-round] ="isRoundButton || isIconButton "
4
4
[matRippleDisabled] ="_isRippleDisabled() "
5
- [matRippleCentered] ="_isIconButton "
5
+ [matRippleCentered] ="isIconButton "
6
6
[matRippleTrigger] ="_getHostElement() "> </ div >
7
7
< div class ="mat-button-focus-overlay "> </ div >
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ export class MatButton extends _MatButtonMixinBase
76
76
implements OnDestroy , CanDisable , CanColor , CanDisableRipple {
77
77
78
78
/** Whether the button is round. */
79
- _isRoundButton : boolean = this . _hasHostAttributes ( 'mat-fab' , 'mat-mini-fab' ) ;
79
+ readonly isRoundButton : boolean = this . _hasHostAttributes ( 'mat-fab' , 'mat-mini-fab' ) ;
80
80
81
81
/** Whether the button is icon button. */
82
- _isIconButton : boolean = this . _hasHostAttributes ( 'mat-icon-button' ) ;
82
+ readonly isIconButton : boolean = this . _hasHostAttributes ( 'mat-icon-button' ) ;
83
83
84
84
/** Reference to the MatRipple instance of the button. */
85
85
@ViewChild ( MatRipple ) ripple : MatRipple ;
@@ -104,7 +104,7 @@ export class MatButton extends _MatButtonMixinBase
104
104
105
105
this . _focusMonitor . monitor ( this . _elementRef . nativeElement , true ) ;
106
106
107
- if ( this . _isRoundButton ) {
107
+ if ( this . isRoundButton ) {
108
108
this . color = DEFAULT_ROUND_BUTTON_COLOR ;
109
109
} else if ( this . _hasHostAttributes ( 'mat-flat-button' ) ) {
110
110
this . color = DEFAULT_FLAT_BUTTON_COLOR ;
You can’t perform that action at this time.
0 commit comments