Skip to content

Commit 8c08bb1

Browse files
fix(button): allow for non-colored flat button (#12550)
1 parent 3ce5b1f commit 8c08bb1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib/button/button.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
3333
/** Default color palette for round buttons (mat-fab and mat-mini-fab) */
3434
const DEFAULT_ROUND_BUTTON_COLOR = 'accent';
3535

36-
/** Default color palette for flat buttons (mat-flat-button) */
37-
const DEFAULT_FLAT_BUTTON_COLOR = 'primary';
38-
3936
/**
4037
* List of classes to add to MatButton instances based on host attributes to
4138
* style as different variants.
@@ -113,8 +110,6 @@ export class MatButton extends _MatButtonMixinBase
113110

114111
if (this.isRoundButton) {
115112
this.color = DEFAULT_ROUND_BUTTON_COLOR;
116-
} else if (this._hasHostAttributes('mat-flat-button')) {
117-
this.color = DEFAULT_FLAT_BUTTON_COLOR;
118113
}
119114
}
120115

0 commit comments

Comments
 (0)