Skip to content

Commit

Permalink
fix(menu): ios styles
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 1, 2018
1 parent e741643 commit 281f9a3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
4 changes: 0 additions & 4 deletions core/src/components/menu/menu.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 0 additions & 4 deletions core/src/components/menu/menu.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions core/src/components/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:host {
--width: #{$menu-width};
--width-small: #{$menu-small-width};
--background: #{$background-color};

@include position(0, 0, 0, 0);

Expand Down Expand Up @@ -33,6 +34,8 @@
width: var(--width);
height: 100%;

background: var(--background);

contain: strict;
}

Expand Down
6 changes: 4 additions & 2 deletions core/src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
3 changes: 2 additions & 1 deletion core/src/components/picker/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 281f9a3

Please sign in to comment.