Skip to content

Commit d4d1f70

Browse files
committed
fix(toast): remove backdrop, allow user interaction when up
Closes #6291
1 parent fb3a707 commit d4d1f70

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/components/toast/toast.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ ion-toast {
1818

1919
width: $toast-width;
2020
height: $toast-width;
21+
22+
pointer-events: none;
2123
}
2224

2325
.toast-container {
2426
display: flex;
2527

2628
align-items: center;
2729

28-
button {
29-
padding: 19px 16px 17px;
30+
pointer-events: auto;
31+
}
32+
33+
.toast-button {
34+
padding: 19px 16px 17px;
3035

31-
font-size: 1.5rem;
32-
}
36+
font-size: 1.5rem;
3337
}
3438

3539
.toast-message {

src/components/toast/toast.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export class Toast extends ViewController {
122122
@Component({
123123
selector: 'ion-toast',
124124
template: `
125-
<div (click)="bdClick()" tappable disable-activated class="backdrop" role="presentation"></div>
126125
<div class="toast-wrapper">
127126
<div class="toast-container">
128127
<div class="toast-message" id="{{hdrId}}" *ngIf="d.message">{{d.message}}</div>
@@ -189,12 +188,6 @@ class ToastCmp {
189188
}
190189
}
191190

192-
bdClick() {
193-
if (this.isEnabled() && this.d.enableBackdropDismiss) {
194-
this.dismiss('backdrop');
195-
}
196-
}
197-
198191
cbClick() {
199192
if (this.isEnabled()) {
200193
this.dismiss('close');

src/components/toggle/toggle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ export class Toggle implements ControlValueAccessor {
192192
* @private
193193
*/
194194
private _setChecked(isChecked: boolean) {
195-
console.debug('_setChecked')
196195
if (isChecked !== this._checked) {
197196
this._checked = isChecked;
198197
if (this._init) {

0 commit comments

Comments
 (0)