fix(button): normalize generated button class names

Addresses https://github.com/driftyco/ionic/issues/5938.
This commit is contained in:
Tim Lancina
2016-03-24 18:05:36 -05:00
parent ba6f92b992
commit 5f621abfcf

View File

@ -300,7 +300,7 @@ export class Button {
*/
private _setClass(type: string, assignCssClass: boolean) {
if (type && this._init) {
this._renderer.setElementClass(this._elementRef.nativeElement, this._role + '-' + type, assignCssClass);
this._renderer.setElementClass(this._elementRef.nativeElement, this._role + '-' + type.toLowerCase(), assignCssClass);
}
}