mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
fix(menu): ios styles
This commit is contained in:
@ -4,10 +4,6 @@
|
||||
// iOS Menu
|
||||
// --------------------------------------------------
|
||||
|
||||
.menu-inner {
|
||||
background: $menu-ios-background;
|
||||
}
|
||||
|
||||
:host(.menu-type-overlay) .menu-inner {
|
||||
box-shadow: $menu-ios-box-shadow-overlay;
|
||||
}
|
||||
|
@ -4,10 +4,6 @@
|
||||
// Material Design Menu
|
||||
// --------------------------------------------------
|
||||
|
||||
.menu-inner {
|
||||
background: $menu-md-background;
|
||||
}
|
||||
|
||||
:host(.menu-type-overlay) .menu-inner {
|
||||
box-shadow: $menu-md-box-shadow;
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
:host {
|
||||
--width: #{$menu-width};
|
||||
--width-small: #{$menu-small-width};
|
||||
--background: #{$background-color};
|
||||
|
||||
@include position(0, 0, 0, 0);
|
||||
|
||||
@ -33,6 +34,8 @@
|
||||
width: var(--width);
|
||||
height: 100%;
|
||||
|
||||
background: var(--background);
|
||||
|
||||
contain: strict;
|
||||
}
|
||||
|
||||
|
@ -60,8 +60,10 @@ export class Menu implements MenuI {
|
||||
@Watch('type')
|
||||
typeChanged(type: string, oldType: string | undefined) {
|
||||
const contentEl = this.contentEl;
|
||||
if (contentEl && oldType) {
|
||||
contentEl.classList.remove(`menu-content-${oldType}`);
|
||||
if (contentEl) {
|
||||
if (oldType) {
|
||||
contentEl.classList.remove(`menu-content-${oldType}`);
|
||||
}
|
||||
contentEl.classList.add(`menu-content-${type}`);
|
||||
contentEl.removeAttribute('style');
|
||||
}
|
||||
|
@ -251,7 +251,8 @@ export class Picker implements OverlayInterface {
|
||||
return [
|
||||
<ion-backdrop
|
||||
visible={this.showBackdrop}
|
||||
tappable={this.backdropDismiss}>
|
||||
tappable={this.backdropDismiss}
|
||||
>
|
||||
</ion-backdrop>,
|
||||
|
||||
<div class="picker-wrapper" role="dialog">
|
||||
|
Reference in New Issue
Block a user