mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(button): normalize generated button class names
Addresses https://github.com/driftyco/ionic/issues/5938.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user