mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
@ -27,7 +27,7 @@ ion-menu[side=right] {
|
||||
left: auto;
|
||||
}
|
||||
|
||||
ion-menu backdrop {
|
||||
ion-menu .backdrop {
|
||||
z-index: -1;
|
||||
display: none;
|
||||
}
|
||||
@ -73,7 +73,7 @@ ion-menu[type=overlay] {
|
||||
z-index: $z-index-menu-overlay;
|
||||
left: -8px; // make up for the box-shadow hanging over on the left
|
||||
|
||||
backdrop {
|
||||
.backdrop {
|
||||
display: block;
|
||||
transform: translate3d(-9999px, 0px, 0px);
|
||||
opacity: 0.01;
|
||||
|
@ -66,7 +66,7 @@ import * as gestures from './menu-gestures';
|
||||
'[attr.side]': 'side',
|
||||
'[attr.type]': 'type'
|
||||
},
|
||||
template: '<ng-content></ng-content><backdrop tappable disable-activated></backdrop>',
|
||||
template: '<ng-content></ng-content><div tappable disable-activated class="backdrop"></div>',
|
||||
directives: [forwardRef(() => MenuBackdrop)]
|
||||
})
|
||||
export class Menu extends Ion {
|
||||
@ -366,7 +366,7 @@ let menuTypes = {};
|
||||
|
||||
|
||||
@Directive({
|
||||
selector: 'backdrop',
|
||||
selector: '.backdrop',
|
||||
host: {
|
||||
'(click)': 'clicked($event)'
|
||||
}
|
||||
|
Reference in New Issue
Block a user