Skip to content

Commit

Permalink
fix(backdrop): remove click cursor when the backdrop is not tappable
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Nov 20, 2016
1 parent 6f96ede commit 06938b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/action-sheet/action-sheet-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { assert } from '../../util/util';
@Component({
selector: 'ion-action-sheet',
template:
'<ion-backdrop (click)="bdClick()"></ion-backdrop>' +
'<ion-backdrop (click)="bdClick()" [class.backdrop-no-tappable]="!d.enableBackdropDismiss"></ion-backdrop>' +
'<div class="action-sheet-wrapper">' +
'<div class="action-sheet-container">' +
'<div class="action-sheet-group">' +
Expand Down
2 changes: 1 addition & 1 deletion src/components/alert/alert-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { GestureController, BlockerDelegate, BLOCK_ALL } from '../../gestures/ge
@Component({
selector: 'ion-alert',
template:
'<ion-backdrop (click)="bdClick()"></ion-backdrop>' +
'<ion-backdrop (click)="bdClick()" [class.backdrop-no-tappable]="!d.enableBackdropDismiss"></ion-backdrop>' +
'<div class="alert-wrapper">' +
'<div class="alert-head">' +
'<h2 id="{{hdrId}}" class="alert-title" *ngIf="d.title" [innerHTML]="d.title"></h2>' +
Expand Down
4 changes: 4 additions & 0 deletions src/components/backdrop/backdrop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ ion-backdrop {
opacity: .01;
transform: translateZ(0);
}

ion-backdrop.backdrop-no-tappable {
cursor: auto;
}
2 changes: 1 addition & 1 deletion src/components/modal/modal-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { assert } from '../../util/util';
@Component({
selector: 'ion-modal',
template:
'<ion-backdrop (click)="_bdClick()"></ion-backdrop>' +
'<ion-backdrop (click)="_bdClick()" [class.backdrop-no-tappable]="!_bdDismiss"></ion-backdrop>' +
'<div class="modal-wrapper">' +
'<div #viewport nav-viewport></div>' +
'</div>'
Expand Down

0 comments on commit 06938b6

Please sign in to comment.