fix(button): add a category to buttons so they won't get the button styles

fixes #6237
This commit is contained in:
Brandy Carney
2016-04-20 13:20:01 -04:00
parent 4a8975cb8b
commit 35dd0ed0b0
12 changed files with 45 additions and 10 deletions

View File

@ -58,6 +58,11 @@ export class Button {
*/
isItem: boolean;
/**
* @input {string} The category of the button.
*/
@Input() category: string;
/**
* @input {string} Large button.
*/
@ -179,6 +184,16 @@ export class Button {
this._readAttrs(element);
}
/**
* @private
*/
ngOnInit() {
// If the button has a role applied to it
if (this.category) {
this.setRole(this.category);
}
}
/**
* @private
*/