Merge pull request #5939 from driftyco/menutoggle-edge-fix

fix(button): normalize generated button class names
This commit is contained in:
Brandy Carney
2016-04-01 16:35:54 -04:00

View File

@ -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);
} }
} }