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

fix(toast): swipe gesture works with custom container layout #29999

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

aeharding
Copy link
Contributor

@aeharding aeharding commented Nov 5, 2024

Issue number: resolves #29998


What is the current behavior?

Applying a custom layout to ion-toast::part(container), for example width: 50%, will make the part of the toast outside this element's bounds non-interactive for swiping gestures.

What is the new behavior?

Can swipe from anywhere on the toast with custom layout applied to ::part(container)

Does this introduce a breaking change?

  • Yes
  • No

Other information

Before After
Kapture.2024-11-04.at.18.36.19.mp4
Kapture.2024-11-04.at.18.35.11.mp4

@aeharding aeharding requested a review from a team as a code owner November 5, 2024 00:45
Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 0:47am

Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change makes sense to me. The toast container doesn't fill the entire horizontal space of the wrapper, but the wrapper is the visual element that users "interact" with, with the swipe gesture.

@sean-perkins sean-perkins requested review from tanner-reits and removed request for christian-bromann November 13, 2024 19:37
Copy link
Member

@tanner-reits tanner-reits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@tanner-reits tanner-reits added this pull request to the merge queue Nov 14, 2024
Merged via the queue into ionic-team:main with commit 470decc Nov 14, 2024
50 checks passed
@aeharding aeharding deleted the toast-fix branch November 14, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Swipe to dismiss not working properly on toast with customized ::part(container) css
3 participants