mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
Merge pull request #5939 from driftyco/menutoggle-edge-fix
fix(button): normalize generated button class names
This commit is contained in:
@ -300,7 +300,7 @@ export class Button {
|
|||||||
*/
|
*/
|
||||||
private _setClass(type: string, assignCssClass: boolean) {
|
private _setClass(type: string, assignCssClass: boolean) {
|
||||||
if (type && this._init) {
|
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