Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast messages occluded by page elements such as text boxes #35

Open
Erudition opened this issue Jul 31, 2019 · 1 comment
Open

Toast messages occluded by page elements such as text boxes #35

Erudition opened this issue Jul 31, 2019 · 1 comment

Comments

@Erudition
Copy link

Erudition commented Jul 31, 2019

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
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?

@Malcx
Copy link

Malcx commented Aug 11, 2019

Manually overriding the z-index in a stylesheet seems to work until this properly gets fixed.

pwa-toast{
z-index:9999;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants