From 5f621abfcf4e00dd957bb14da8ad101c96f47c5b Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Thu, 24 Mar 2016 18:05:36 -0500 Subject: [PATCH] fix(button): normalize generated button class names Addresses https://github.com/driftyco/ionic/issues/5938. --- ionic/components/button/button.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/components/button/button.ts b/ionic/components/button/button.ts index bb7abca204..71535ddfa4 100644 --- a/ionic/components/button/button.ts +++ b/ionic/components/button/button.ts @@ -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); } }