We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v8.x
I have some CSS to center the toast message with its icon. Here is the css:
ion-toast::part(container) { display: inline-flex; transform: translateX(-50%); left: 50%; position: relative; }
With this CSS, I can no longer swipe to dismiss unless I start the swipe from over the .toast-container element:
.toast-container
This is because the ion-toast has pointer-events: none and it is reset on the .toast-container element with pointer-events: auto.
ion-toast
pointer-events: none
pointer-events: auto
Can swipe from anywhere on the toast, even with custom layout applied to ::part(container)
::part(container)
https://stackblitz.com/edit/kvqhk5
Latest Ionic Stackblitz
This could be fixed by moving pointer-events: auto from .toast-container to .toast-wrapper. I will make a pr :)
.toast-wrapper
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
I have some CSS to center the toast message with its icon. Here is the css:
With this CSS, I can no longer swipe to dismiss unless I start the swipe from over the
.toast-container
element:This is because the
ion-toast
haspointer-events: none
and it is reset on the.toast-container
element withpointer-events: auto
.Expected Behavior
Can swipe from anywhere on the toast, even with custom layout applied to
::part(container)
Steps to Reproduce
Code Reproduction URL
https://stackblitz.com/edit/kvqhk5
Ionic Info
Latest Ionic Stackblitz
Additional Information
This could be fixed by moving
pointer-events: auto
from.toast-container
to.toast-wrapper
. I will make a pr :)The text was updated successfully, but these errors were encountered: