diff --git a/ionic/components/button/button.ts b/ionic/components/button/button.ts index 504d54c87e..12b3b236c9 100644 --- a/ionic/components/button/button.ts +++ b/ionic/components/button/button.ts @@ -92,6 +92,13 @@ export class Button { } } + /** + * @private + */ + addClass(className) { + this._renderer.setElementClass(this._elementRef, className, true); + } + /** * @private */ diff --git a/ionic/components/item/item.ts b/ionic/components/item/item.ts index 390beeee74..83764648d9 100644 --- a/ionic/components/item/item.ts +++ b/ionic/components/item/item.ts @@ -64,7 +64,9 @@ export class Item { @ContentChildren(Button) set _buttons(buttons) { - Button.setRoles(buttons, 'item-button'); + buttons.toArray().forEach(button => { + button.addClass('item-button'); + }); } @ContentChildren(Icon)