mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix menu-toggle style in content
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</button>
|
||||
</ion-buttons>
|
||||
|
||||
<button menu-toggle="rightMenu" right>
|
||||
<button menu-toggle="rightMenu" right secondary>
|
||||
<icon menu></icon>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user