Skip to content

Commit 5f621ab

Browse files
committed
fix(button): normalize generated button class names
Addresses #5938.
1 parent ba6f92b commit 5f621ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ionic/components/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class Button {
300300
*/
301301
private _setClass(type: string, assignCssClass: boolean) {
302302
if (type && this._init) {
303-
this._renderer.setElementClass(this._elementRef.nativeElement, this._role + '-' + type, assignCssClass);
303+
this._renderer.setElementClass(this._elementRef.nativeElement, this._role + '-' + type.toLowerCase(), assignCssClass);
304304
}
305305
}
306306

0 commit comments

Comments
 (0)