diff --git a/ionic/components/button/button.ts b/ionic/components/button/button.ts index 863783f333..3dbdb6b3cc 100644 --- a/ionic/components/button/button.ts +++ b/ionic/components/button/button.ts @@ -169,7 +169,7 @@ const BUTTON_SIZE_ATTRS = ['large', 'small']; const BUTTON_STYLE_ATTRS = ['clear', 'outline', 'solid']; const BUTTON_SHAPE_ATTRS = ['round', 'fab']; const BUTTON_DISPLAY_ATTRS = ['block', 'full']; -const IGNORE_ATTRS = /_ng|button/; +const IGNORE_ATTRS = /_ng|button|left|right/; const TEXT = 1; const ICON = 2; diff --git a/ionic/components/menu/test/basic/page1.html b/ionic/components/menu/test/basic/page1.html index ed3744ca64..f8f5b40f8a 100644 --- a/ionic/components/menu/test/basic/page1.html +++ b/ionic/components/menu/test/basic/page1.html @@ -21,7 +21,7 @@ - diff --git a/ionic/components/toolbar/toolbar.ts b/ionic/components/toolbar/toolbar.ts index b0d1e07b5a..21290614e4 100644 --- a/ionic/components/toolbar/toolbar.ts +++ b/ionic/components/toolbar/toolbar.ts @@ -151,19 +151,21 @@ export class ToolbarTitle extends Ion { @Directive({ selector: 'ion-buttons,[menu-toggle]' }) -export class ToolbarItem extends Ion { +export class ToolbarItem { constructor( elementRef: ElementRef, @Optional() toolbar: Toolbar, @Optional() @Inject(forwardRef(() => Navbar)) navbar: Navbar ) { - super(elementRef, null); toolbar && toolbar.addItemRef(elementRef); navbar && navbar.addItemRef(elementRef); + this.inToolbar = !!(toolbar || navbar); } @ContentChildren(Button) set _buttons(buttons) { - Button.setRoles(buttons, 'bar-button'); + if (this.inToolbar) { + Button.setRoles(buttons, 'bar-button'); + } } }