ionic-team / ionic-team/pwa-elements

Toast messages occluded by page elements such as text boxes

Open
#35 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
171
Forks
50
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a ...**
[x] bug report
[ ] feature request

**Current behavior:**
When firing a toast message, some page elements are not covered properly by the toast. Instead, those elements cover the message!
![toastblocked](https://user-images.githubusercontent.com/3915447/62252441-df1fb280-b3c0-11e9-80e0-20606505cd00.png)
In the example above, the elements are not set to unusual z-index values or anything.

**Expected behavior:**
The Toast message, since it is ephemeral, should cover just about everything. I think it should have some transparency in it's backdrop, which should help if anything underneath it needs to be seen.

**Steps to reproduce:**
In your browser console try sending a toast on a page with PWA elements:

```
window.Capacitor.Plugins.Toast.show({ text: "Here's a long Toast message. You can see under me, but if you scroll the page, some elements cover me up!", duration: '10000'}).then();
```

Then attempt to scroll elements past it, such as form input elements (like those pictured above).

**Potential solution**
Increase Toast Z-index?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.